Google reCAPTCHA v3 validation failed: The response parameter is missing

Created on 12 April 2022, almost 3 years ago
Updated 6 September 2024, 4 months ago

NOTE: This is for a form that is embedded in a node as a paragraph. In the Form Settings page the form ID of the Captcha Point is webform_submission_contact_node_10_add_form.

Recaptcha V3 not working on a contact form.

Submitting a form with Captcha V3 always fails and falls back to the secondary validation method. The error message in Recent Log Messages is:

Google reCAPTCHA v3 validation failed: The response parameter is missing.

Interestingly enough the secondary method also tries to submit during the initial posting of the form and if logging is enabled it will indicate that the secondary method was entered without a value. For instance, if the secondary method is Math, it will report:

webform_submission_contact_node_10_add_form post blocked by CAPTCHA module: challenge Math (by module captcha), user answered "", but the solution was "6".

Steps to reproduce

  1. Add a contact webform to a node as a paragraph.
  2. Within the Captcha/ReCaptcha configuration pages add a reCaptcha V3 Action.
  3. In Captcha Form Settings add a Captcha Point for your Webform (form_id).
  4. Submit the form.
  • Captcha Caching is not enabled.
  • Turning off Caching for the site in Performance -> Caching makes no difference but this is a Pantheon hosted site and there may be other caching going on that is beyond our control.
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada awasson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States seanr

    This is still extant in 2.0.2

  • πŸ‡ΈπŸ‡°Slovakia poker10

    @seanr Can you open a new issue for this? We are also getting similar errors from bots even on 2.0.2.

    Google reCAPTCHA v3 validation failed: The response parameter is invalid or malformed. Expected action did not match.
    
    Google reCAPTCHA v3 validation failed: The response parameter is invalid or malformed. Expected hostname did not match. Expected action did not match.
    
Production build 0.71.5 2024