-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Error verifying input, please try again." error #157
Comments
@hubacekjirka Same problem here, did you end up finding a solution? |
@yvandermeer Nope, still couldn't figure it out :( @phala Could you please give us a clue what's going on? Many thanks! |
I added this code in fields.py:75: import traceback
traceback.print_exc() It gave me this:
Locally it does not work but on the production version of the site it does because it uses HTTPS. Adding the following in my local settings did not fix it: RECAPTCHA_USE_SSL = False |
Just to summarize it, the server needs to be running HTTPS which might not be the case for the local dev server. If the the web server isn't running HTTPS, the authenticity of the certificate can't be verified as there might be man-in-the-middle attack between the web server and client. In this case, the certificate verify failed error pops out: The workaround for running captcha on the dev server without HTTPS is the one @qcaron suggests. |
Since pretty much all devs will encounter this, it would be nice if django-recaptcha could build this exception handling in. Thanks for the workaround @qcaron . |
I haven't encountered this problem yet, and I don't know how to reproduce this error, but when I search for the error
Based on these two posts, it mostly seems to affect MacOS, and still can affect recent versions of Python. So:
|
After filling the form and getting a tick-mark on the recaptcha filed, I'm getting "Error verifying input, please try again." error message displayed in the widget after submitting.
My form class is:
Is there a way to further diagnose this issue?
The text was updated successfully, but these errors were encountered: