-
Notifications
You must be signed in to change notification settings - Fork 91
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
executeRecaptcha hangs second time #13
Comments
Hi @olemartin, as much as I would like to, I cannot help you with such a brief, can you at least please provide an example of your code and the console log ? |
@t49tran I have this code:
voting2 is always printed, voting3 is only printed the first time. In the application this happens when I use the backbutton to navigate back to where the recaptcha code is and execute the vote-function. |
So what you've caught inside the catch phrase, what is the error there ? |
@t49tran It's no error. The function call just hangs. |
Have you checked the function can reach the Without knowing the error I could not assist you further and must close this issue. |
@t49tran I didn't have a try-catch in the start. I added the try-catch in an attempt to figure out what was wrong, but the function call just hangs. So, I don't have an error message, but the component doesn't work as expected. |
It might be that the recaptcha token is expired. How do you handle that? |
This seems to work:
captchaToken2 gets a value, but captchaToken does not. |
I wonder if anyone looks at this issue? |
@olemartin we face this issue for gatsby websites. Do you develop static website as well? |
I am also facing a similar issue as to what has been mentioned, the first time my app fully renders and I submit my form, the excuteRecaptcha returns back a value. But in the instance that it gets verified by the backend and or it expires. I get an error back from the API and if I try to resubmit |
+1 |
@t49tran I opened PR. I tried it on my local machine and it worked. It doesn't hang when component remounts |
@akin-tekeoglu thanks for the PR, I will publish the fix as soon as possible. |
It seems like executeRecaptcha hangs the second time I call it. When users navigate on our site, we don't reload the script.
The text was updated successfully, but these errors were encountered: