Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error Handshake failed #619

Closed
andersruneson opened this issue Feb 11, 2018 · 7 comments
Closed

Error Handshake failed #619

andersruneson opened this issue Feb 11, 2018 · 7 comments

Comments

@andersruneson
Copy link

I've been using this app for a long time with an Owncloud 9 instance and it's been working great.

Now I've installed Nextcloud 12 on one server and Nextcloud 13 on another, however, I cannot get this app working with either of those server. When trying to # I get this error "Handshake failed", see attached image. Before trying to # I've cleared the app cache and data to reset everything.

rqjbdpqgpxamqxylrdeooacg

@David-Development
Copy link
Member

Thank you for the feedback and sorry for the inconveniences.

Please make sure that the Nextcloud news app is installed and successfully activated on the server side. (No errors in the nextcloud log).

To test the API, the following command can be executed (More information can be found here: #527 (comment))

curl -u username http://<path-to-nextcloud>/index.php/apps/news/api/v1-2/feeds
Replace username by your actual username and replace the <path-to-nextcloud> by your server name.

@andersruneson
Copy link
Author

Thanks, I've checked the logs, maybe this is related:

Error | PHP | Undefined index: updatedDate at /var/www/nextcloud/apps/news/lib/Db/Item.php#169

Could this be because I've exported the feeds from my owncloud instance and imported them into nextcloud?
Here are the subscriptions.opml:

<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
  <head>
    <title>Subscriptions</title>
  </head>
  <body>
    <outline title="xkcd.com" text="xkcd.com" type="rss" xmlUrl="https://xkcd.com" htmlUrl="http://xkcd.com/"/>
    <outline title="Swedroid" text="Swedroid" type="rss" xmlUrl="http://feeds.feedburner.com/swedroid-se" htmlUrl="http://www.swedroid.se/"/>
    <outline title="Phoronix" text="Phoronix" type="rss" xmlUrl="http://www.phoronix.com/rss.php" htmlUrl="http://www.phoronix.com/"/>
    <outline title="Elektroniktidningen" text="Elektroniktidningen" type="rss" xmlUrl="http://etn.se/ETN_RSS20.xml" htmlUrl="http://www.etn.se/"/>
    <outline title="Mantis Bug Tracker" text="Mantis Bug Tracker" type="rss" xmlUrl="https://www.mantisbt.org/blog/" htmlUrl="https://www.mantisbt.org/blog"/>
    <outline title="Mark Shuttleworth" text="Mark Shuttleworth" type="rss" xmlUrl="http://www.markshuttleworth.com/" htmlUrl="http://www.markshuttleworth.com/"/>
    <outline title="Dilbert Daily Strip" text="Dilbert Daily Strip" type="rss" xmlUrl="http://comicfeeds.chrisbenard.net/view/dilbert/default" htmlUrl="http://dilbert.com/"/>
    <outline title="Let's Encrypt - Free SSL/TLS Certificates" text="Let's Encrypt - Free SSL/TLS Certificates" type="rss" xmlUrl="https://letsencrypt.org/feed.xml" htmlUrl="https://letsencrypt.org//"/>
    <outline title="Twitter Search / inputmice" text="Twitter Search / inputmice" type="rss" xmlUrl="https://twitrss.me/twitter_user_to_rss/?user=inputMice" htmlUrl="https://twitter.com/inputmice"/>
    <outline title="Stéphane Graber's website" text="Stéphane Graber's website" type="rss" xmlUrl="https://www.stgraber.org/feed/" htmlUrl="https://www.stgraber.org/"/>
    <outline title="Skolmaten" text="Skolmaten" type="rss" xmlUrl="http://skolmaten.se/krokens-forskola/rss/today/" htmlUrl="http://skolmaten.se/krokens-forskola/rss/today/"/>
    <outline title="Nextcloud Planet" text="Nextcloud Planet" type="rss" xmlUrl="https://nextcloud.com/blogfeed/" htmlUrl="https://nextcloud.com/news/"/>
    <outline title="CommitStrip" text="CommitStrip" type="rss" xmlUrl="http://www.commitstrip.com/en/?" htmlUrl="http://www.commitstrip.com/"/>
  </body>
</opml>

@andersruneson
Copy link
Author

The error message only appeared once (three times in a row).
The News page integrated into Nextcloud (the web interface) works fine.

I've tried running curl and that seems to work:

rune@xps:~$ curl -u myuser https://cloud.myserver.se/index.php/apps/news/api/v1-2/feeds Enter host password for user 'myuser': {"starredCount":0,"feeds":[{"id":1,"url":"http:\/\/skolmaten.se\/krokens-forskola\/rss\/today\/","title":"Skolmaten - Krokens f\u00f6rskola","faviconLink":"http:\/\/skolmaten.se\/favicon.ico","added":1518356274,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/skolmaten.se\/krokens-forskola\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":2,"url":"https:\/\/nextcloud.com\/blogfeed\/","title":"Nextcloud Planet","faviconLink":"https:\/\/nextcloud.com\/wp-content\/themes\/next\/assets\/img\/common\/favicon.png?x16328","added":1518356274,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/nextcloud.com\/news\/","pinned":false,"updateErrorCount":151,"lastUpdateError":"Feed not found: Either the website does not provide a feed or blocks access. To rule out blocking, try to download the feed on your server's command line using curl: curl https:\/\/nextcloud.com\/blogfeed\/"},{"id":3,"url":"http:\/\/www.commitstrip.com\/en\/?","title":"CommitStrip","faviconLink":"http:\/\/www.commitstrip.com\/wp-content\/themes\/krds_blog\/favicon.png?v=5","added":1518356274,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/www.commitstrip.com\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":4,"url":"https:\/\/twitrss.me\/twitter_user_to_rss\/?user=inputMice","title":"Twitter Search \/ iNPUTmice","faviconLink":"https:\/\/abs.twimg.com\/favicons\/favicon.ico","added":1518356274,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/twitter.com\/iNPUTmice","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":5,"url":"https:\/\/letsencrypt.org\/feed.xml","title":"Let's Encrypt - Free SSL\/TLS Certificates","faviconLink":"https:\/\/letsencrypt.org\/favicon.ico","added":1518356275,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/letsencrypt.org\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":6,"url":"http:\/\/www.markshuttleworth.com\/","title":"Mark Shuttleworth","faviconLink":"","added":1518356275,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/www.markshuttleworth.com\/","pinned":false,"updateErrorCount":0,"lastUpdateError":null},{"id":7,"url":"http:\/\/etn.se\/ETN_RSS20.xml","title":"Elektroniktidningen","faviconLink":"http:\/\/etn.se\/favicon.ico?v=10","added":1518356275,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/etn.se\/index.php","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":8,"url":"https:\/\/www.stgraber.org\/feed\/","title":"St\u00e9phane Graber's website","faviconLink":"https:\/\/www.stgraber.org\/wp-content\/uploads\/favicon.ico","added":1518356276,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/stgraber.org\/","pinned":false,"updateErrorCount":0,"lastUpdateError":null},{"id":9,"url":"http:\/\/comicfeeds.chrisbenard.net\/view\/dilbert\/default","title":"Dilbert Daily Strip","faviconLink":"http:\/\/dilbert.com\/assets\/favicon\/favicon-160x160-7d355fdd1a7b8405d90af6162139ec10.png","added":1518356275,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/dilbert.com\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":10,"url":"http:\/\/feeds.feedburner.com\/swedroid-se","title":"Swedroid","faviconLink":"http:\/\/www.swedroid.se\/gui\/i\/favicon.png","added":1518356276,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/www.swedroid.se\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":11,"url":"https:\/\/xkcd.com","title":"xkcd.com","faviconLink":"https:\/\/xkcd.com\/s\/919f27.ico","added":1518356277,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/xkcd.com\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":12,"url":"http:\/\/www.phoronix.com\/rss.php","title":"Phoronix","faviconLink":"https:\/\/www.phoronix.com\/favicon.ico","added":1518356276,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/www.phoronix.com\/","pinned":false,"updateErrorCount":0,"lastUpdateError":""},{"id":13,"url":"http:\/\/nextcloud\/nofeed","title":"Articles without feed","faviconLink":null,"added":1518356279,"folderId":0,"unreadCount":0,"ordering":0,"link":"http:\/\/nextcloud\/nofeed","pinned":false,"updateErrorCount":0,"lastUpdateError":null},{"id":14,"url":"https:\/\/www.mantisbt.org\/blog\/","title":"Mantis Bug Tracker","faviconLink":"https:\/\/mantisbt.org\/favicon.ico","added":1518356278,"folderId":0,"unreadCount":0,"ordering":0,"link":"https:\/\/mantisbt.org\/blog","pinned":false,"updateErrorCount":0,"lastUpdateError":""}],"newestItemId":322}

@David-Development
Copy link
Member

Thank you for the provided informations. It looks like that the API is working just fine. Did you change other things on the server side? (such as switch ssl certificates). Are you using a self signed certificate? Which Android OS Version are you using?

@andersruneson
Copy link
Author

The three servers all use different certificates, but all from Lets Encrypt. The working machine use Apache2 directly with owncloud and the two others uses nginx reverse proxy in front of the Apache2 server.
I have only an Android 7.0 (LG G6) to use and test this on.

@David-Development
Copy link
Member

Thanks for the information! Seems like it's a bug of your Android Version (see https://stackoverflow.com/a/42047877)

I thought this issue was fixed by a pull request provided by the community (see #607)

For more information on the issue, please refer to the following bug report: #567

@andersruneson
Copy link
Author

Yes, changing the setting in nginx worked fine. Thanks.
Does indeed seem like the patch in News doesn't work for me.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants