Kong/insomnia · error · Error
Could not find request ${id}
Error message
Could not find request ${id} What it means
Error "Could not find request ${id}" thrown in Kong/insomnia.
Source
Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:583
defaultValue: 60,
},
],
async run(context, field, id, filter, resendBehavior, maxAgeSeconds) {
filter = filter || '';
resendBehavior = (resendBehavior || 'never').toLowerCase();
if (!['body', 'header', 'raw', 'url'].includes(field)) {
throw new Error(`Invalid response field ${field}`);
}
if (!id) {
throw new Error('No request specified');
}
const request = await context.util.models.request.getById(id);
if (!request) {
throw new Error(`Could not find request ${id}`);
}
let shouldResend = false;
const environmentId = context.context.getEnvironmentId?.() || null;
const globalEnvironmentId = context.context.getGlobalEnvironmentId?.() || null;
let response = await context.util.models.response.getLatestForRequestId(id, environmentId);
switch (resendBehavior) {
case 'no-history': {
// if either global environment or collection environment changed, resend the request
shouldResend = !response
? true
: response.environmentId !== environmentId || response.globalEnvironmentId !== globalEnvironmentId;
break;
}
case 'when-expired': {
if (!response) {View on GitHub (pinned to d9bb2b0142)
When it happens
Trigger: Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:583 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/a821bbc6fe92ec45.
Report an issue: GitHub.