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

Make error messages clearer when network is offline or interrupted #97

Open
e271828- opened this issue Aug 8, 2022 · 0 comments
Open
Assignees

Comments

@e271828-
Copy link
Contributor

e271828- commented Aug 8, 2022

Right now we produce error messages like:

  • Can't find variable: reset
  • Can't find variable: execute

If resources cannot be loaded, e.g. if user goes out of service in the midst of a session.

  1. JS SDK calls should be wrapped in JS, return comprehensible error message ("could not load resources from network")
  2. We should look at robustifying this:
  • watchdog timer at N seconds (15?) if webview comes up but JS fails to load. (can be done in JS: setTimeout for 15s, check if window.hcaptcha exists)
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