Throw an exception when timeout

Created on 29 December 2021, almost 3 years ago
Updated 7 September 2024, 2 months ago

Error: Call to a member function getStatusCode() on null in Drupal\http_client_retry\EventSubscriber\RequestRetryEventSubscriber->onRetry()

Choose Retry on timeout and Log retries on configuration.Then when timeout, throw an exception,Error: Call to a member function getStatusCode() on null in Drupal\http_client_retry\EventSubscriber\RequestRetryEventSubscriber->onRetry() (line 71 of modules/contrib/http_client_retry/src/EventSubscriber/RequestRetryEventSubscriber.php).

Modify '@status_code' => $event->getResponse()->getStatusCode() to '@status_code' => null !== $event->getResponse() ? $event->getResponse()->getStatusCode() : '0' on/http_client_retry/src/EventSubscriber/RequestRetryEventSubscriber.php

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡³China tom mao

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024