react-google-invisible-recaptcha
react-google-invisible-recaptcha copied to clipboard
Getting Error in Console response “Uncaught (in promise) Timeout”
In the console, I am getting the following error
Having the same issue! Were you able to solve it? @nisargrthakkar
I found out it only happens when I'm throttling to a very low speed. But we already had 84 occurences in PROD in the last 10 days.
@BramDecuypere No, We are facing the same issue. In Google ReCaptcha issue is open https://github.com/google/recaptcha/issues/269.
Personally, I don't think this issue is not related to low speed.
@nisargrthakkar - throttling and network conditions are absolutely at play here. There's an unhandled timeout in Google's recaptcha code; and no easy way to handle it from outside. If a timeout occurs - most often because of temporary network failure on the client end - the uncaught promise is logged.
I know this because I was tasked with dealing with the many Sentry errors this was generating on a React application. IIRC I had to suppress them in Sentry :/
Looks like someone has found a fix for this
https://github.com/google/recaptcha/issues/269#issuecomment-606838861 https://gist.github.com/ANTOSzbk/75ed7003e914162550f61399122a3bd4
Could this be implemented?
I've noticed that is not happening in production / without React strict mode. Can anyone else confirm?