Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit 8c13853

Browse files
Retry on 503 (#477)
Co-authored-by: chafreaky <4400527+chafreaky@users.noreply.github.com>
1 parent 457bc8c commit 8c13853

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/internal/dispatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function isRetryableHttpError(
7979
): boolean {
8080
// TODO: remove 500s after webhooks are more stable.
8181
const retryableCodes =
82-
apiType === AlchemyApiType.WEBHOOK ? [429, 500] : [429];
82+
apiType === AlchemyApiType.WEBHOOK ? [429, 500, 503] : [429, 503];
8383
return (
8484
err.response !== undefined && retryableCodes.includes(err.response.status)
8585
);

0 commit comments

Comments
 (0)