Kong/insomnia · error
Request or response not found
Error message
Request or response not found
What it means
exportHarCurrentRequest IPC handler could not find the request or response referenced by the options ids, so there is nothing to export.
Solutions
- Re-send the request to create a fresh response before exporting
- Verify the request/response still exist
- Reload the app if IDs became stale
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/insomnia/src/main/ipc/main.ts:589 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/e4b2f7b195cd2d97.
Report an issue: GitHub.
Appendix: source
Thrown at packages/insomnia/src/main/ipc/main.ts:589
if (!request) {
throw new Error(`Request ${options.requestId} not found`);
}
return exportHarWithRequest(request, options.environmentId, options.addContentLength);
},
);
ipcMainHandle(
'exportHarRequest',
async (_, options: { requestId: string; environmentOrWorkspaceId: string; addContentLength?: boolean }) => {
return exportHarRequest(options.requestId, options.environmentOrWorkspaceId, options.addContentLength);
},
);
ipcMainHandle('exportHarCurrentRequest', async (_, options: { requestId: string; responseId: string }) => {
const request = await services.request.getById(options.requestId);
const response = await services.response.getById(options.responseId);
if (!request || !response) {
throw new Error('Request or response not found');
}
return exportHarCurrentRequest(request, response);
});
ipcMainHandle('exportRequestsHAR', async (_, options: { requests: any[]; includePrivateDocs?: boolean }) => {
return exportRequestsHAR(options.requests, options.includePrivateDocs);
});
ipcMainHandle('exportWorkspacesHAR', async (_, options: { workspaces: any[]; includePrivateDocs?: boolean }) => {
return exportWorkspacesHAR(options.workspaces, options.includePrivateDocs);
});
ipcMainHandle('insecureReadFile', async (_, options: { path: string }) => {
return insecureReadFile(options.path);
});
ipcMainHandle('secureReadFile', async (_, options: { path: string; encoding?: string }) => {
return secureReadFile(options.path);
});View on GitHub (pinned to d9bb2b0142)