VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 257 forks source link

TypeError: b.render is not a function #226

Closed drakanor closed 6 years ago

drakanor commented 6 years ago

Since yesterday I'm getting the following error when loading the angular-recaptcha. It ran flawlessly for months. Did Google change something in their Recpatcha response? I have just updated it to the latest version, but no change:

TypeError: b.render is not a function at c.js:496 at c.js:142 at m.$digest (c.js:153) at m.$apply (c.js:156) at c.js:118 "Possibly unhandled rejection: {}"

lcdamy commented 6 years ago

Me too i have the same problem,it say the same thing i spend three hours trying to troubleshoot this but no answer.

TypeError: recaptcha.render is not a function at angular-recaptcha.js:199 at E (angular.min.js:100) at angular.min.js:101 at k.$eval (angular.min.js:112) at k.$digest (angular.min.js:109) at k.$HeHely (angular.min.js:112) at angular.min.js:81

drakanor commented 6 years ago

We were able to solve the issue by removing

<script src="https://www.google.com/recaptcha/api.js?onload=vcRecaptchaApiLoaded&render=explicit" async defer> </script>

from the page head. Looks like the plugin does this by itself. It's unclear to us, why this was working for months anyway.

mtrias commented 6 years ago

Looks like a duplicate of #224 which was fixed by #225 and released in 4.1.4. Have you tried that version? Please reopen if still doesn't work for you.

hehg24 commented 6 years ago

Is anyone aware of what caused this issue to begin occurring yesterday? I don't see any information on this outside of this project. Thank you.

mtrias commented 6 years ago

My bet would be a change in Google's code. Just a minor change like an early definition of the module, (like grecaptcha = {}) on their side would trigger this bug.

drakanor commented 6 years ago

4.1.4 does not fix this. Already included Githubissues.

  • Githubissues is a development platform for aggregating issues.