nextcloud-deck
nextcloud-deck copied to clipboard
Custom `HTTP 530` status code by Cloudflare not recognized by Deck Android as offline server
This issue respects the following points:
- [X] I have read the FAQ
- [X] I have searched for existing issues
- [X] The issue affects the Deck Android app, neither the Deck server app nor the Nextcloud Android app.
Describe the bug
When the phone or server is offline, I get a stack trace popup which i then have to close or copy.
Expected behavior
When deck server is offline, either because the nextcloud server is down or phone is offline. I should be able to edit and add cards without issue. Then, when the server is back online, the changes made are reciprocated across to the server, rather than getting some error message.
Deck Android version
1.24.1
Deck server version
1.13.1
Nextcloud Android version
3.29.2
Nextcloud version
29.0.4
Device
samsung s10
Android Version
11
App Store
- [ ] Google Play Store
- [ ] Google Play Store (Beta channel)
- [X] F-Droid
- [ ] Huawei App Gallery
Stacktrace
App Version: 1.24.1
App Version Code: 1024001
Server App Version: 1.13.1
App Flavor: fdroid
Files App Version Code: 30290290 (PROD)
---
OS Version: 4.14.113-23326020(G973FXXUEGULB)
OS API Level: 31
Device: beyond1
Manufacturer: samsung
Model (and Product): SM-G973F (beyond1lteeea)
---
com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP request failed with HTTP status-code: 530
at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.onResponse(RequestHelper.java:70)
at com.nextcloud.android.sso.helper.Retrofit2Helper$1.lambda$enqueue$0(Retrofit2Helper.java:87)
at com.nextcloud.android.sso.helper.Retrofit2Helper$1.$r8$lambda$n0izO5V3AflskH7z1H8dSLmVKXo(Unknown Source:0)
at com.nextcloud.android.sso.helper.Retrofit2Helper$1$$ExternalSyntheticLambda0.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.lang.RuntimeException: HTTP StatusCode wasn't 2xx:
Got [HTTP 530] for Call [GET http://localhost//index.php/apps/deck/api/v1.0/boards/8/stacks/19/cards] with Message:
[error code: 1033
]
at it.niedermann.nextcloud.deck.remote.api.RequestHelper$ResponseConsumer.buildCause(RequestHelper.java:87)
... 5 more