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

Function isStaleConnectionError

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

Source from the content-addressed store, hash-verified

114}
115
116function isStaleConnectionError(error: unknown): boolean {
117 if (!(error instanceof APIConnectionError)) {
118 return false
119 }
120 const details = extractConnectionErrorDetails(error)
121 return details?.code === 'ECONNRESET' || details?.code === 'EPIPE'
122}
123
124function isOauthBackedFirstPartySession(session: ResolvedAuthSession): boolean {
125 return (

Callers 1

withRetryFunction · 0.85

Calls 1

Tested by

no test coverage detected