react-google-invisible-recaptcha icon indicating copy to clipboard operation
react-google-invisible-recaptcha copied to clipboard

Getting Error in Console response “Uncaught (in promise) Timeout”

Open nisargrthakkar opened this issue 5 years ago • 5 comments

In the console, I am getting the following error

captcha

nisargrthakkar avatar Mar 22 '19 09:03 nisargrthakkar

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 avatar May 23 '19 08:05 BramDecuypere

@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 avatar May 23 '19 11:05 nisargrthakkar

@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 :/

blindfish3 avatar Aug 14 '19 05:08 blindfish3

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?

trickydisco78 avatar Jun 24 '20 11:06 trickydisco78

I've noticed that is not happening in production / without React strict mode. Can anyone else confirm?

npearson72 avatar Apr 04 '23 16:04 npearson72