Kong/insomnia · error
insomniaFetch timed out: ${method} ${path}
Error message
insomniaFetch timed out: ${method} ${path} What it means
Error "insomniaFetch timed out: ${method} ${path}" thrown in Kong/insomnia.
Source
Thrown at packages/insomnia/src/common/insomnia-fetch.ts:86
const json = await response.json();
if (typeof json?.error === 'string') {
errName = json.error;
}
if (typeof json?.message === 'string') {
errMsg = json.message;
}
} catch {}
}
throw new ResponseFailError(errName, errMsg, response);
}
return isJson ? response.json() : (response.text() as Promise<T>);
} catch (err) {
if (!(err instanceof Error)) {
throw err;
}
// AbortSignal.timeout() gives TimeoutError, not AbortError
if (err.name === 'AbortError' || err.name === 'TimeoutError') {
throw new Error(`insomniaFetch timed out: ${method} ${path}`, { cause: err });
}
// the real error (ECONNREFUSED, cert problems) hides in err.cause, sometimes nested in an AggregateError
const cause = (err as { cause?: string | { code?: string; message?: string; errors?: { code?: string }[] } })
.cause;
const detail = typeof cause === 'string' ? cause : cause?.code || cause?.errors?.[0]?.code || cause?.message;
if (detail) {
// fresh Error (don't mutate err.message) so a re-observed/retried error doesn't append the detail twice
throw new Error(`${err.message} (${detail})`, { cause: err });
}
throw err;
}
}
View on GitHub (pinned to d9bb2b0142)
When it happens
Trigger: Thrown at packages/insomnia/src/common/insomnia-fetch.ts:86 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/6238cd8d78a0e2a6.
Report an issue: GitHub.