MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isRetryable

Function isRetryable

apps/kimi-code/src/feedback/upload.ts:196–202  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

194}
195
196function isRetryable(error: unknown): boolean {
197 if (error instanceof UploadPartHttpError) {
198 return error.status >= 500 || error.status === 408 || error.status === 429;
199 }
200 // Network errors and timeouts are retryable.
201 return true;
202}
203
204function sleep(ms: number): Promise<void> {
205 return new Promise((resolve) => {

Callers 1

uploadOnePartWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected