Skip to content

Commit 2fddc76

Browse files
committed
fix: remove retry to api
1 parent 401f64d commit 2fddc76

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/Clients/StudizzApiClient.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,11 @@ public function post(string $endpoint, array $data = []): ?array
9191
private function request(string $method, string $endpoint, array $data = [])
9292
{
9393
try {
94-
$response = Http::retry(3, 100)
95-
->timeout(5)
96-
->withHeaders([
97-
'x-api-key' => $this->apiKey,
98-
'Content-Type' => 'application/json',
99-
])->$method("{$this->baseUrl}/{$endpoint}", $data);
94+
$response = Http::timeout(5)
95+
->withHeaders([
96+
'x-api-key' => $this->apiKey,
97+
'Content-Type' => 'application/json',
98+
])->$method("{$this->baseUrl}/{$endpoint}", $data);
10099

101100
if ($response->failed()) {
102101
Log::channel('studizz')->error("API request failed: {$response->status()} - {$response->body()}");

0 commit comments

Comments
 (0)