Skip to content

Commit

Permalink
Update packages/api-client/src/http/HttpClient.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Przemysław Jóźwik <[email protected]>
  • Loading branch information
thisisamir98 and przemvs authored Oct 10, 2024
1 parent f9296d5 commit 44fee65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-client/src/http/HttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ type SendRequest = {
const isTooManyRequestsError = axios.isAxiosError(error) && error.response?.status === 420;

if (isTooManyRequestsError) {
return this.backOffQueue.add(() => this._sendRequest<T>(config, true, abortController));
return this.backOffQueue.add(() => this._sendRequest<T>({config, abortController}));
}

throw error;
Expand Down

0 comments on commit 44fee65

Please sign in to comment.