Skip to content

Commit fa4d778

Browse files
committed
fix(core): widen SSEStreamSubscription default nonRetryableStatuses
1 parent 2170894 commit fa4d778

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/src/v3/apiClient/runStream.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ export class SSEStreamSubscription implements StreamSubscription {
251251
this.retryJitter = options.retryJitter ?? 0.5;
252252
this.fetchTimeoutMs = options.fetchTimeoutMs ?? 30_000;
253253
this.stallTimeoutMs = options.stallTimeoutMs ?? 0;
254-
this.nonRetryableStatuses = new Set(options.nonRetryableStatuses ?? [404, 410]);
254+
this.nonRetryableStatuses = new Set(
255+
options.nonRetryableStatuses ?? [400, 404, 409, 410, 422]
256+
);
255257
}
256258

257259
/**

0 commit comments

Comments
 (0)