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

Offline buffering does not buffer when server is offline #83

Open
Voidthe opened this issue Aug 4, 2024 · 1 comment
Open

Offline buffering does not buffer when server is offline #83

Voidthe opened this issue Aug 4, 2024 · 1 comment

Comments

@Voidthe
Copy link

Voidthe commented Aug 4, 2024

Describe the bug
When using cloudflare and cloudflare tunnels to access traccar if the tunnel or server is down location data is not cached.

To Reproduce
Steps to reproduce the behavior:

  1. Turn off cloudflare tunnel
  2. Observe client still sends updates but updates not reflected in traccar manager
  3. Turn on cloudflare tunnel
  4. Observe that the data is lost.

Expected behavior
Location data is stored untill the server is back online and data is sync as normal.

Smartphone (please complete the following information):

  • Iphone 13
  • OS: IOS 18
  • Browser: IOS client
  • Version: Latest

Additional context
I have a feeling its due to how traccar client checks if the server is online. I have a feeling that its only checking for normal failure codes like 4XX or 50X. When using cloudflare tunnel it will return a nonstandard error code of 530. It feels like it should only delete the data on a successful 2XX response

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

No branches or pull requests

2 participants