Skip to content

Commit

Permalink
Raise Httpie timeout for Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjaap authored Aug 26, 2024
1 parent c4947f2 commit 13cbf4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ static function (&$value) use ($config) {
$response = Httpie::post(
$releasesApiUrl
)
->setopt(CURLOPT_TIMEOUT, 10)
->header('Authorization', sprintf('Bearer %s', $config['token']))
->jsonBody($releaseData)
->getJson();
Expand Down Expand Up @@ -162,6 +163,7 @@ static function (&$value) use ($config) {
$response = Httpie::post(
$releasesApiUrl . $response['version'] . '/deploys/'
)
->setopt(CURLOPT_TIMEOUT, 10)
->header('Authorization', sprintf('Bearer %s', $config['token']))
->jsonBody($deployData)
->getJson();
Expand Down

0 comments on commit 13cbf4c

Please sign in to comment.