Kong/insomnia · error · Error
Could not find request
Error message
Could not find request ${id} What it means
Template-tag runtime error for {% response %}: a request id was supplied but no request with that id exists in the data store. Usually caused by a deleted/moved request still referenced by the tag, or an unrendered variable producing a wrong id.
Solutions
- Use a valid request id or request._id in the template tag
- Re-insert the referenced request if it was deleted
- Pick the request via the tag's autocomplete rather than typing the id
Defensive patterns
Strategy: validation
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.
Appendix: 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)