Problem/Motivation

Websites using reCaptcha v3, that are inundated with spam get lots of "Google reCAPTCHA v3 validation failed: The response parameter is missing." in the logs.

Proposed resolution

Given that this error is "expected", as spam bots are triggering it by failing to pass the verification, I suggest reducing the log severity to "warning" for this and other messages that are expected when bot fails to pass verification.

One example is "Illegal Choice has been detected" log item generated in "form" log channel by Drupal core, when form submission has unexpected values. Its marked as "warning".

This is important, when logs are aggregated and analyzed by services like Rollbar, which sends notifications when log item severity Error or more severe.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

elaman created an issue. See original summary.

elaman’s picture

Status: Active » Needs review

Went ahead with PR, please let me know if I missed another log point.

dench0’s picture

Status: Needs review » Reviewed & tested by the community

  • dench0 committed 315f1e84 on 2.0.x authored by elaman
    feat: #3550459 Reduce log severity from "error" to "warning" or just "...
dench0’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dhansen’s picture

@dench0 I'm seeing that @seanr (working on behalf of my team) offered an identical solution with a patch a little over a year before this issue was created here https://www.drupal.org/project/recaptcha_v3/issues/3437759#comment-15677641. Would it be possible to add him to the contributor credit on this issue?

dench0’s picture

@dhansen
done