Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
sentry-io bot opened this issue Feb 26, 2024 · 0 comments
Assignees
Labels

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 26, 2024

  • 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)
@cleptric cleptric transferred this issue from getsentry/sentry Feb 26, 2024
@cleptric cleptric added the bug label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant