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.
Issue fork nobotiq_spam_protection-3629498
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
Comment #4
alex_optimComment #5
volegerFixed thanks