Problem/Motivation

The spam check request uses a hard-coded 5 second timeout:

$this->httpClient->post(API_BASE_URL . SPAM_CHECK_URL, ['timeout' => 5, ...]);

When the NoBotIQ API occasionally responds slower than 5s (or the connection is
slow), cURL aborts with error 28 and no response body:

cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received

Because there is no response, the exception has no status code, so
classifyException() falls into the `default` branch and marks the integration as
`request_failed` / ERROR state. IntegrationStatusManager::markFailure() then
sends an "integration issue" notification email, which reads:

The NoBotIQ spam protection integration reported an issue.
Issue: cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received
Spam checks may be skipped until the balance or connection issue is resolved.

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

alex_optim created an issue. See original summary.

  • alex_optim committed 004c7d94 on fix/spam-check-timeout-15s
    fix: #3629498 Increase spam check request timeout to 10s
    
    The spam check...

alex_optim’s picture

Assigned: Unassigned » voleger
Status: Active » Needs review
voleger’s picture

Status: Needs review » Fixed

Fixed thanks

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.