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

Function handleGcpCredentialError

src/services/api/withRetry.ts:731–737  ·  view source on GitHub ↗

* Clear GCP auth caches if appropriate. * @returns true if action was taken.

(error: unknown)

Source from the content-addressed store, hash-verified

729 * @returns true if action was taken.
730 */
731function handleGcpCredentialError(error: unknown): boolean {
732 if (isVertexAuthError(error)) {
733 clearCurrentGcpCredentialsCache()
734 return true
735 }
736 return false
737}
738
739function shouldRetry(error: APIError): boolean {
740 // Never retry mock errors - they're from /mock-limits command for testing

Callers 1

withRetryFunction · 0.85

Calls 2

isVertexAuthErrorFunction · 0.85

Tested by

no test coverage detected