We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668e781 commit 1e2626eCopy full SHA for 1e2626e
config/hubspot.php
@@ -65,5 +65,6 @@
65
66
'http' => [
67
'timeout' => env('HUBSPOT_HTTP_TIMEOUT', 10),
68
+ 'connect_timeout' => env('HUBSPOT_HTTP_CONNECT_TIMEOUT', 10),
69
],
70
];
src/Api/Client.php
@@ -32,6 +32,7 @@ public function prefix($uri): string
32
public function http(): PendingRequest
33
{
34
return Http::timeout(config('hubspot.http.timeout', 10))
35
+ ->connectTimeout(config('hubspot.http.connect_timeout', 10))
36
->withToken($this->accessToken)
37
->throw(function (Response $response, RequestException $exception) {
38
if ($response->json('category') === 'RATE_LIMITS') {
0 commit comments