-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom HTTP 530
status code by Cloudflare not recognized by Deck Android as offline server
#1663
Comments
Deck Android is fully offline capable including editing capabilities. It also supports a server being in maintenance mode or not reachable at all. Maybe you want to explain what a |
Ah ok, many thanks anyhow. Seams that I get Seams strange that putting the phone in airplane mode doesn't bring up a large stack trace log. But if I am on the internet, stop Nextcloud server, then open Nextcloud deck app and go to add a card, that's when I get the full screen The |
It is absolutely reasonable: When the phone knows that it is offline, it does not attempt to synchronize (why should it?) → no error message as the failed synchronization attempt was not expected to work. ✔️ Now your case: Your phone is online, your server is online, your server responds with maintenance mode, a server error, random spaghetti or an invalid HTTP status code - What is your proposal how to react? Hide the error, not signalizing the user the synchronization won't work? No, informing the user that the synchronization failed unexpectedly seems to be correct for me. ❌ Sorry, but sprinkling non-standard cloudflare stuff on your backend seems not to be a good reason to adjust all clients in the world and respect custom fictitious HTTP status codes. |
HTTP 530
status code by Cloudflare not recognized by Deck Android as offline server
Sorry, do you mean
I use Cloudflare tunnels to protest my self-hosted server from bots, DDoS and malware without needing to port forward. Are you saying there is a better option than Cloudflare? What do you use? |
What I am saying is, that your Cloudflare protection does not behave standards compliant and as such you can by definition not expect any client to work properly. So, you told that this is happening
I can't imagine to see a
Then the question is what "offline" means. Apache / NginX not reachable? Is your cloud in maintenance mode? What causes your Cloudflare protection to respond with HTTP 530? |
Sorry about this, I believe there may be a miss communication between us. The issue happens when the phone is online like normal, but if I stop the Nextcloud docker or the server is turned off, that's when I get the full screen stack trace error message. I hope this clears up the miss understandings.
This would likely be due to the Cloudflare tunnels not connecting due to the server turned off.
What setup do you use that does behave standards compliant? |
Indeed, thank you for clarifying this. I was confused since you mentioned multiple times your phone being offline ( So, I think we now have a common understanding about what's wrong: Your (online) phone tries to synchronize, while your server is shutdown. Your proposal is to not show a hint when the synchronization failed because your server is offline. When your server is available again, the local changes should get synchronized successfully again to your server (== offline capability). But I still can't agree to hide this kind of feedback from users. It is not the normal state that a server is offline, it is an exceptional state that should be handled accordingly. Not getting notified about an exceptional state looks wrong from my point of few. If I suppressed this exact notification, I know there will be 2 people tomorrow here complaining that the app silently fails to sync without any hint about what's wrong (a valid complaint from my point of view). |
Yeah, fair play. Thank you for your help. So I guess tldr is ditch Cloudflare tunnels when using nextcloud? What set up do you use for accessing Nextcloud with a domain or such? |
Actually cloudflare is not the issue (though behaving strange). Tl;DR: Don't shut your nextcloud down to avoid getting notified about unsuccessful synchronization attempts 🙂 |
Dear Stefan, Please send some info soon, meanwhile this is a real sad showstopper to me. There is no better Kanban than this here (assuming it will be working again) |
Thank you for the flowers ❤️
I disagree, depending on your evaluation of 2. |
What I did:
|
Funnily sync Works volatily better, still Not perfekt, doublicating lists or cards. |
This issue respects the following points:
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
Stacktrace
The text was updated successfully, but these errors were encountered: