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

Using proxy option in offline mode results in error #54

Open
krisztian-am opened this issue Nov 29, 2016 · 2 comments
Open

Using proxy option in offline mode results in error #54

krisztian-am opened this issue Nov 29, 2016 · 2 comments
Labels

Comments

@krisztian-am
Copy link

krisztian-am commented Nov 29, 2016

When I'm using the proxy option in an Ionic application with db.load, there's an uncaught error if the device is not connected to the internet. If I remove the proxy line everything works fine. Any ideas?

@nolanlawson
Copy link
Member

Hm, the proxy needs a connection to the internet in order to generate a unique ID for the source and the target.

This is a nasty bug. You may just need to .catch() the error and retry using a timeout.

@nolanlawson nolanlawson added the bug label Dec 2, 2016
@nolanlawson
Copy link
Member

Arguably the .load() method itself could do this sort of retry logic, but then it would need to implement backoff, etc. This is a really hard problem to solve.

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

No branches or pull requests

2 participants