MCPcopy Create free account
hub / github.com/Noumena-Network/code / isTransientCapacityError

Function isTransientCapacityError

src/services/api/withRetry.ts:110–114  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

108}
109
110function isTransientCapacityError(error: unknown): boolean {
111 return (
112 is529Error(error) || (error instanceof APIError && error.status === 429)
113 )
114}
115
116function isStaleConnectionError(error: unknown): boolean {
117 if (!(error instanceof APIConnectionError)) {

Callers 2

withRetryFunction · 0.85
shouldRetryFunction · 0.85

Calls 1

is529ErrorFunction · 0.85

Tested by

no test coverage detected