Skip to content
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

Android App Won't Launch / Freezes When CalDAV Server Unavailable #3057

Closed
mwaterbu opened this issue Feb 26, 2024 · 6 comments
Closed

Android App Won't Launch / Freezes When CalDAV Server Unavailable #3057

mwaterbu opened this issue Feb 26, 2024 · 6 comments

Comments

@mwaterbu
Copy link

mwaterbu commented Feb 26, 2024

Your Environment

  • Version used: 21.0 apk (from Play Store)
  • Operating System and version: Android 12

Expected Behavior

App launches and is usable

Current Behavior

App will sit on loading screen for several minutes. It may eventually show the task list but is unresponsive and shows an error at the bottom of the screen:

Unknown Sync Error: Error: Invalid response: -3
Network Error

Steps to Reproduce (for bugs)

  1. Setup a CalDav server on local network
  2. Connect one or more projects to this server
  3. Disconnect from local network, but retain internet connectivity (don't go offline)
  4. Attempt to launch app

Can you reproduce this reliably?

This can be reliably reproduced. When offline completely, the app launches without issue. However, if there is a network connection where the CalDAV server is not available (example listed above), this bug will occur.

@mwaterbu mwaterbu added the bug label Feb 26, 2024
Copy link

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

Copy link

Hello there mwaterbu! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

For more open ended discussions and/or specific questions, please visit the discussions page. 💖

@mwaterbu
Copy link
Author

I attempted to reproduce this by simply taking the server offline, and staying connected to my local network, and the error state did not occur. The same error still showed up though (which makes sense):

Unknown Sync Error: Error: Invalid response: -3
Network Error

It also did not occur when I connected to a different WiFi network. For some reason, it only happens when I am on LTE.

Copy link

This issue has not received any updates in 90 days. Please comment, if this still relevant!

@github-actions github-actions bot added the Stale label Jun 30, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
@mwaterbu
Copy link
Author

mwaterbu commented Aug 26, 2024

To close the loop on this: I found that this was actually caused by the WebDAV backup sync, and only happened when I was on cellular data, not WiFi (even networks other than my home WiFi). As a workaround, I found that if I set the server to the local domain (hostname) instead of the local IP address, the issue no longer occurred. So I think my carrier was just ignoring the connection requests instead of returning an error. Ideally, SP wouldn't even try to connect to WebDAV unless I was on my home network, but this would require a new setting and likely some app permissions.

@johannesjo
Copy link
Owner

Thank you very much for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants