HTTP-Statuscode 404
Eng: Since a few weeks i get the following Error Message when I refresh for new news. But I can't get new News.
"HTTP-Request failed with HTTP-Statuscode: 404"
Ger: Seit ein paar Wochen bekomme ich folgende Fehlermeldung wenn ich für neuen News aktualisiere. Aber ich bekomme keine neuen News
"HTTP-Anfrage ist fehlgeschlagen mit HTTP-Statuscode:404"
App Version: 0.9.9.90 App Version Code: 191
SSO enabled: true
OS Version: 5.10.218-android13-4-g33b79d6bc8d1(2024070201) OS API Level: 34 Device: panther Model (and Product): Pixel 7 (panther)
sp_max_cache_size=500 sp_swipe_left_action=2 sw_use_single_sign_on=true cb_ShowOnlyUnread=false cb_openInBrowserDirectly=false cb_prefBackButtonOpensDrawer=false lv_cacheImagesOffline=0 cb_ShowFastActions=true pref_sync_settings=15 cb_AutoSyncOnStart=true sp_news_detail_actionbar_icons=[] sp_swipe_right_action=1 cb_NavigateWithVolumeButtons=false sp_font_size=1.0 sp_search_in=2 cb_external_player=false sp_sort_order=1 cb_MarkAsReadWhileScrolling=false sp_feed_list_layout=6 cb_oled_mode=false PREVIOUS_VERSION_CODE=191 sp_display_browser=0 sp_app_theme=0
Are you able to disconnect and reconnect to the Nextcloud server?
Asking because on my end, attempting to login via the Nextcloud app fails with sthe same error as well:
Error
HTTP request failed with HTTP status-code: 404
Note that my setup uses a self-signed certificate (gated server).
Reproduce:
- Connect the Nextcloud app to a server by IP-address with a self-signed certificate.
- Install Nextcloud News app from either F-Droid or Google Play.
- Use option "Login using Nextcloud Files App", select user@IP, and allow the login request.
- The error message appears.
System:
- App version 0.9.9.85
- Android 14, API 34
Log:
--------- beginning of main
07-25 12:06:38.371 5551 5551 D VersionCheckHelper: Version Code: 30290190
07-25 12:06:41.043 5551 5551 D com.nextcloud.android.sso.api.AidlNetworkRequest: [unbindService] Unbinding AccountManagerService
07-25 12:06:41.048 5551 17446 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] connectApiWithBackoff() called from Thread: [Thread-28]
07-25 12:06:41.068 5551 5551 D com.nextcloud.android.sso.api.NetworkRequest: [connectApiWithBackoff] trying to connect..
07-25 12:06:41.068 5551 5551 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Binding to AccountManagerService for type [nextcloud]
07-25 12:06:41.068 5551 5551 D com.nextcloud.android.sso.api.NetworkRequest: [connect] connect() called [main] Account-Type: [nextcloud]
07-25 12:06:41.068 5551 5551 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Component name is: [com.nextcloud.client]
07-25 12:06:41.071 5551 5551 D com.nextcloud.android.sso.api.AidlNetworkRequest: [connect] Bound to AccountManagerService successfully
07-25 12:06:41.082 5551 5551 D com.nextcloud.android.sso.api.AidlNetworkRequest: [onServiceConnected] called from Thread: [main] with IBinder [ComponentInfo{com.nextcloud.client/com.owncloud.android.services.AccountManagerService}]: android.os.BinderProxy@989370c
07-25 12:06:41.082 5551 5551 D de.luhmer.owncloudnewsreader.LoginDialogActivity: onConnected() called
07-25 12:06:41.083 5551 5551 D com.nextcloud.android.sso.api.NextcloudRetrofitServiceMethod: NextcloudRetrofitServiceMethod() called with: apiEndpoint = [/index.php/apps/news/api/v1-2/], method = [public abstract io.reactivex.rxjava3.core.Observable de.luhmer.owncloudnewsreader.reader.nextcloud.NewsAPI.version()]
07-25 12:06:41.084 5551 5551 D com.nextcloud.android.sso.api.NextcloudRetrofitServiceMethod: invoke call to api using observable class de.luhmer.owncloudnewsreader.model.NextcloudNewsVersion
07-25 12:06:41.085 5551 5551 V de.luhmer.owncloudnewsreader.LoginDialogActivity: onSubscribe() called with: d = [0]
07-25 12:06:41.086 5551 17450 D com.nextcloud.android.sso.api.AidlNetworkRequest: copy data from service finished
07-25 12:06:42.312 5551 5551 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Dialog$$ExternalSyntheticLambda2@f428351
07-25 12:06:42.327 5551 5551 V de.luhmer.owncloudnewsreader.LoginDialogActivity: onError() called with: e = [com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP request failed with HTTP status-code: 404]
Attempting to use the manual login option leads to issue #1290, which @David-Development closed noting that login via the Nextcloud app should (still) work for self-signed certificates.
manually logging in also gives 404. This app is broken!
At least in my case this turned out to be related to the Nextcloud app being outdated server-side. I was able to login again after fixing that (though there are still compatibility issues, see here).
@tom-ch1 Can you confirm that the Nextcloud News App is still installed and active in the Nextcloud Web Interface?
@mirkoreul Thank you for sharing your findings! I believe that a dialog pointing users to the issue would be helpful.