Kong/insomnia · error · Error
Failed to render request
Error message
Failed to render request: ${request._id} What it means
Fallback wrapper around getRenderedRequestAndContext: nunjucks/templating failed while rendering the request (bad tag, missing variable, etc.) and, since it is not already a RenderError, it is replaced by this generic sentinel that names only the request ID.
Solutions
- Render the request template manually to find the failing tag (undefined variable, syntax error, plugin tag error)
- Fix or define the offending template variable or tag, then resend
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/insomnia/src/network/network.ts:799 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/8c9c54f1680e952f.
Report an issue: GitHub.
Appendix: source
Thrown at packages/insomnia/src/network/network.ts:799
transientVariables?: Environment;
ignoreUndefinedEnvVariable?: boolean;
}) => {
try {
return await getRenderedRequestAndContext({
request: request,
environment,
baseEnvironment,
userUploadEnvironment,
transientVariables,
purpose,
extraInfo,
ignoreUndefinedEnvVariable,
});
} catch (err) {
if (err instanceof RenderError) {
throw err;
}
throw new Error(`Failed to render request: ${request._id}`);
}
};
export const tryToTransformRequestWithPlugins = async (renderResult: {
request: RenderedRequest;
context: Record<string, any>;
}) => {
const { request, context } = renderResult;
return await getRuntime().network.applyRequestHooks(request, context);
};
export interface sendCurlAndWriteTimelineError {
_id: string;
parentId: string;
timelinePath: string;
statusMessage: string;
// additional
url: string;View on GitHub (pinned to d9bb2b0142)