Skip to content

Commit 8a78e3e

Browse files
authored
Raise Httpie timeout for Sentry (#3879)
1 parent c4947f2 commit 8a78e3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/sentry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static function (&$value) use ($config) {
132132
$response = Httpie::post(
133133
$releasesApiUrl
134134
)
135+
->setopt(CURLOPT_TIMEOUT, 10)
135136
->header('Authorization', sprintf('Bearer %s', $config['token']))
136137
->jsonBody($releaseData)
137138
->getJson();
@@ -162,6 +163,7 @@ static function (&$value) use ($config) {
162163
$response = Httpie::post(
163164
$releasesApiUrl . $response['version'] . '/deploys/'
164165
)
166+
->setopt(CURLOPT_TIMEOUT, 10)
165167
->header('Authorization', sprintf('Bearer %s', $config['token']))
166168
->jsonBody($deployData)
167169
->getJson();

0 commit comments

Comments
 (0)