nextcloud / news-android

📱🗞️ Android client for the Nextcloud news/feed reader app
https://play.google.com/store/apps/details?id=de.luhmer.owncloudnewsreader
GNU Affero General Public License v3.0
698 stars 258 forks source link

Nextcloud news will timeout when trying to connect IPv6 despite not available #1356

Open oriold opened 10 months ago

oriold commented 10 months ago

So if you have a host with both A and AAAA records nextcloud news doesn't seem to care if the system has not a connection with IPv6 enabled and tries to connect anyway, thus timing out. Its the job of the OS how to route the request. App should not be doing that.

David-Development commented 10 months ago

Thank you for the report. Are you using the SSO feature? (Login using Nextcloud Files App)? If so, does the nextcloud files app work? The nextcloud news app doesn't do any network operations - all network requests are proxied through the files app - so the actual network request is created by the nextcloud files app.

If you use the old (and deprecated) manual login - I don't know why it shouldn't work - the app is not doing any magic related to IPv4/IPv6 handling.

oriold commented 10 months ago

I am using Nextcloud files to log in. There are no issues on any other application but this one. Nextcloud files don't try to connect over IPv6 if it is not available.

Attaching screenshot, only happens with Nextcloud News. When I open the app the symbol is spinning and obviously timing out as IPv6 is not available. You can see that the IP address is a local one and not a public one, so not able to connect.

nextcloud_news_bug

David-Development commented 10 months ago

Are you using some of the other supported SSO apps? (Like Deck, Notes or Bookmarks?) https://github.com/nextcloud/Android-SingleSignOn?tab=readme-ov-file#known-apps

Does the Nextcloud Files app work at the same location with the same setup (network)?

I don't know why it would behave any different than the Nextcloud Files App. Like I said - Nextcloud News app does not make the request itself - it sends the request via IPC (Inter-process communication) to the Nextcloud Files app which will make the actual network request. So if the Nextcloud Files App works - the News App should work as well.

Can you double check that you are using SSO indeed? (Click on your profile icon and log in using the "Login using Nextcloud Files App" again).

@tobiasKaminsky Any ideas? Have you heard of any issues related to IPv6 before?

oriold commented 10 months ago

Bookmarks and Notes. They don't have this issue.

tobiasKaminsky commented 10 months ago

Hm. No, I never heard about this problem. I sometimes have this, but when I switch network, but then also files app times out.

David-Development commented 10 months ago

@oriold Any chance you could pull some Logcat logs? I'm wondering if it's related to the favicons or something else being downloaded from the server directly during the sync (with "downloaded directly" I mean that it is not using the SSO connection). If Bookmarks and Notes is working it makes no sense to me why the news app wouldn't be working.. 🤔

oriold commented 10 months ago

I will upload logs.