{"record":{"id":"e48903879b4e382c","repo":"Kong/insomnia","slug":"request-options-requestid-not-found","errorCode":null,"errorMessage":"Request ${options.requestId} not found","messagePattern":"Request (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/main/ipc/main.ts","lineNumber":572,"sourceCode":"      });\n    },\n  );\n\n  ipcMainHandle('generateCodeSnippet', async (_, options: { har: object; target: string; client: string }) => {\n    const snippet = new HTTPSnippet(options.har as any);\n    return snippet.convert(options.target, options.client) || '';\n  });\n\n  ipcMainHandle('getCodeSnippetTargets', async () => {\n    return availableTargets();\n  });\n\n  ipcMainHandle(\n    'exportHarWithRequest',\n    async (_, options: { requestId: string; environmentId?: string; addContentLength?: boolean }) => {\n      const request = await services.request.getById(options.requestId);\n      if (!request) {\n        throw new Error(`Request ${options.requestId} not found`);\n      }\n      return exportHarWithRequest(request, options.environmentId, options.addContentLength);\n    },\n  );\n\n  ipcMainHandle(\n    'exportHarRequest',\n    async (_, options: { requestId: string; environmentOrWorkspaceId: string; addContentLength?: boolean }) => {\n      return exportHarRequest(options.requestId, options.environmentOrWorkspaceId, options.addContentLength);\n    },\n  );\n\n  ipcMainHandle('exportHarCurrentRequest', async (_, options: { requestId: string; responseId: string }) => {\n    const request = await services.request.getById(options.requestId);\n    const response = await services.response.getById(options.responseId);\n    if (!request || !response) {\n      throw new Error('Request or response not found');\n    }","sourceCodeStart":554,"sourceCodeEnd":590,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/main/ipc/main.ts#L554-L590","documentation":"Error \"Request ${options.requestId} not found\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/main/ipc/main.ts:572 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}