google / recaptcha

PHP client library for reCAPTCHA, a free service to protect your website from spam and abuse.
http://www.google.com/recaptcha/
BSD 3-Clause "New" or "Revised" License
3.48k stars 771 forks source link

Empty responses from Google every 2 weeks or so. #451

Open TaiTair opened 3 years ago

TaiTair commented 3 years ago

Issue description We are using ReCaptchaV3 for a few forms on our website. We have implemented it using google's documentation. Every 2 weeks or so the grecaptcha.execute() function returns an empty token (and this happens for a few days), rendering the captcha entirely useless.

Environment Server is Centos7 running CPanel and PHP5.6 Web server is HTTPD/Apache. recaptcha is the latest version. Browser is the lastest version of Chrome.

Reproducing the issue Here is a page where this issue happens: https://www.savonaequipment.com/en/knelson-cd12-centrifugal-gold-concentrator-p883332 On the right side you can see a "mini form" to get a quote. That form can be used to reproduce the issue.

Here is the relevant code on the frontend: image Here is the relevant code on the backend: image Here is the error log: image

In the backend you can see that I have an "else" for error-codes. Most of the time the code inside that else is commented out, when we stop receiving quotes I uncomment that.

User steps

  1. Wait for Google Recaptcha to crap out (every two weeks or so)
  2. Submit a quote request

Don't know what's happening, could really use a hand debugging it. With all the tests I have done I am pretty certain the problem comes from grecaptcha.execute(). It works most of the time, just craps out on a regular interval like if Google was getting DDOSed.

TaiTair commented 3 years ago

Well I guess since Google doesn't care about its customers we will be migrating away from reCaptcha. Thanks for nothing!