Kong/insomnia · error · Error
bodyResult.error
Error message
bodyResult.error
What it means
Error "bodyResult.error" thrown in Kong/insomnia.
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)
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.