Skip to content

Cake\Http\Client\Exception\NetworkException: cURL Error (28) Connection timed out after 30358 milliseconds #158

@sentry

Description

@sentry
  • Add a ~5s HTTP client timeout
  • Add retry logic for HTTP requests to the Slack API
  • Finish spans here, even if it throws

Sentry Issue: GIBPOTATO-BACKEND-74

Cake\Http\Client\Exception\NetworkException: cURL Error (28) Connection timed out after 30358 milliseconds
  File "/var/www/gib-potato/src/Http/Client.php", line 41, in App\Http\Client::_sendRequest
    $response = parent::_sendRequest($request, $options);
  File "/var/www/gib-potato/src/Http/SlackClient.php", line 38, in App\Http\SlackClient::postMessage
    $response = $this->client->post('chat.postMessage', [
  File "/var/www/gib-potato/src/Service/NotificationService.php", line 51, in App\Service\NotificationService::notifyUsers
    $this->slackClient->postMessage(
  File "/var/www/gib-potato/src/Event/MessageEvent.php", line 90, in App\Event\MessageEvent::process
    $notificationService->notifyUsers(
  File "/var/www/gib-potato/src/Controller/EventsController.php", line 33, in App\Controller\EventsController::index
    $event->process();
...
(31 additional frame(s) were not displayed)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions