Skip to content

Commit e5f87b1

Browse files
author
craghurampec
committed
fix timeout errors
1 parent a331ab4 commit e5f87b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎config/bwt-api.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
return [
44
'base_url' => env('BWT_API_BASE_URL', 'https://bwt.com/api'),
55
'api_key' => env('BWT_API_KEY'),
6-
'timeout' => env('BWT_API_TIMEOUT', 120),
6+
'timeout' => env('BWT_API_TIMEOUT', 300),
77
];

‎src/BwtApiClient.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BwtApiClient
2020

2121
protected ?string $apiKey = null;
2222

23-
protected int $timeout = 60;
23+
protected int $timeout = 300;
2424

2525
public function __construct(
2626
?string $baseUrl = null,
@@ -29,7 +29,7 @@ public function __construct(
2929
) {
3030
$this->baseUrl = $baseUrl ?? config('bwt-api.base_url', 'https://bwt.com/api');
3131
$this->apiKey = $apiKey ?? config('bwt-api.api_key') ?? '';
32-
$this->timeout = $timeout ?? config('bwt-api.timeout', 60);
32+
$this->timeout = $timeout ?? config('bwt-api.timeout', 300);
3333
}
3434

3535
protected function getAuthHeader(): array

0 commit comments

Comments
 (0)