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
Javascript exception occurred #69
Comments
Hey @elodd, were you able to solve this? Is there anything we can do to improve the library? |
Hi @fjcaetano, No, unfortunately not, but minimised failure occasions by doing a redundant call for the When:
The above Javascript exception still occurs and breaks the flow. |
I'll investigate this further. I've just closed issue #70, which was a duplicate of this one. The error there seemed to be because A workaround was to add some delay before validating. Could you check if that minimizes the issue for you? Also, is this issue only happening in development (since you're using |
My understanding that since the token key is created on the mobile phone and not on a website or dns I need localhost for security reasons. |
@elodd you're free to use any domains you want, that's why the property is configurable. Did you try adding the delay I mentioned? Using this library is a three-step process:
Ideally, you shouldn't try and execute all three at once. If that's what you're doing, you shouldn't run into any problems, but it's safer to add some time between them, specially loading and validating. Either way, any problems you may be encountering should be investigated. |
Are you by any chance using ReCaptcha v3? It looks like v3 is causing many issues with the library. If possible, please, try and use a v2 Invisible ReCaptcha key. I'll look into adding support for v3 keys. |
I used a |
@elodd I was able to reproduce that issue by registering a wrong key or domain. Could you double check that on your side? Also, please check if you're using Google ReCaptcha's SITE KEY for the client side integration. |
@fjcaetano Sorry I moved on working with a different project. |
ReCaptchaDomain is
http://localhost/
, but at validate the webview is interrupted with a Javascript exception expectingReCaptchaDomain
in the html?The text was updated successfully, but these errors were encountered: