We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7742369 commit 0112a9aCopy full SHA for 0112a9a
src/Core/BaseClient.php
@@ -264,7 +264,7 @@ protected function sendRequest(
264
}
265
266
if ($code >= 400 || is_null($rsp)) {
267
- if ($this->shouldRetry($opts, retryCount: $retryCount, rsp: $rsp)) {
+ if (!$this->shouldRetry($opts, retryCount: $retryCount, rsp: $rsp)) {
268
$exn = is_null($rsp) ? new APIConnectionException($req, previous: $err) : APIStatusException::from(request: $req, response: $rsp);
269
270
throw $exn;
0 commit comments