Kong/insomnia · error · Error
bodyResult.error
Error message
bodyResult.error
What it means
Re-raise in curlOutputToResponse after reading the curl response body from disk: the readCurlResponse service reported an error (e.g. decompression or file read failure), and that error message is surfaced as this Error.
Solutions
- Retry the sendRequest call
- Check temp-file cleanup and disk health
- Report persistent body-read failures
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packages/insomnia-scripting-environment/src/objects/send-request.ts:270 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/d6bb94d66cb707aa.
Report an issue: GitHub.
Appendix: source
Thrown at packages/insomnia-scripting-environment/src/objects/send-request.ts:270
if (!result.responseBodyPath) {
return new Response({
code: lastRedirect.code,
reason: lastRedirect.reason,
header: headers,
cookie: cookies as CookieOptions[],
body: '',
stream: undefined,
responseTime: result.patch.elapsedTime,
originalRequest,
});
}
const bodyResult = await services.helpers.readCurlResponse({
bodyPath: result.responseBodyPath,
bodyCompression: result.patch.bodyCompression,
});
if (bodyResult.error) {
throw new Error(bodyResult.error);
}
return new Response({
code: lastRedirect.code,
reason: lastRedirect.reason,
header: headers,
cookie: cookies as CookieOptions[],
body: bodyResult.body,
// stream is always undefined
// because it is inaccurate to differentiate if body is binary
stream: undefined,
responseTime: result.patch.elapsedTime,
originalRequest,
});
}
View on GitHub (pinned to d9bb2b0142)