MCPcopy Create free account
hub / github.com/Kong/insomnia / asDebugError

Function asDebugError

packages/insomnia/src/konnect/debug-session-query.ts:56–58  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

54const TERMINAL_ERRORS: ReadonlySet<DebugErrorKind> = new Set(['unauthorized', 'forbidden', 'not_found']);
55
56export function asDebugError(error: unknown): DebugApiError | null {
57 return error instanceof DebugApiError ? error : null;
58}
59
60export function isTerminalError(error: unknown): boolean {
61 const debugError = asDebugError(error);

Callers 6

isTerminalErrorFunction · 0.85
retryDelayFunction · 0.85
errorIntervalFunction · 0.85
stopSessionByIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected