6

I am using google recaptcha V2, for captcha verification. Recently, I am facing issue while resetting the captcha using grecaptcha.reset() method.

Refer error screenshot below:

enter image description here

Have checked the same scenario in the google recaptcha demo website and the same issue exists.

Can any one help with this? Is there any workaround. Thanks in advance.

DonRaHulk
  • 575
  • 1
  • 6
  • 18
  • 3
    I've started seeing these errors in a production application this week and haven't yet been able to diagnose it either. It's unclear why are usage is causing what appears to be an infinite loop inside Google's Recaptcha code. – Jared Norman May 29 '21 at 16:03
  • This has also happened to me this week, perhaps this has been caused by a change on google's end? – Richard May 31 '21 at 13:38
  • 1
    I guess we have solved this issue. For us the scenario was using multiple captchas in a single page. The issue occurs when we load multiple api.js file (part of google recaptcha) in the same html page. Now when there are multiple js files loaded, the captcha loaded by the greptcha.reset function gets into infinite loop when checked. As a fix: 1. Load only one recatpcha api.JS file in the HTML body. Make sure there is only one api.js is loaded in the page. – DonRaHulk Jun 01 '21 at 08:23
  • Same situation here. I accidentally loaded reCaptcha's api.js twice on the same page, which caused the issue. – I like eating pizza thursdays Sep 10 '21 at 17:43

0 Answers0