{"record":{"id":"ad53d63e5484b936","repo":"Kong/insomnia","slug":"no-cookie-specified","errorCode":null,"errorMessage":"No cookie specified","messagePattern":"No cookie specified","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/common/templating/local-template-tags.ts","lineNumber":916,"sourceCode":"        if (!workspace) {\n          throw new Error(`Workspace not found for ${meta.workspaceId}`);\n        }\n\n        if (attribute === 'url') {\n          const rendered = await context.util.render(request.url);\n          const url = new URL(rendered || '', 'http://localhost');\n          for (const p of request.parameters) {\n            const name = await context.util.render(p.name);\n            const value = await context.util.render(p.value);\n            if (name && value) {\n              url.searchParams.append(name, value);\n            }\n          }\n          return url;\n        }\n        if (attribute === 'cookie') {\n          if (!name) {\n            throw new Error('No cookie specified');\n          }\n\n          const cookies = request.url\n            ? await context.util.models.cookieJar.getCookiesForUrl(workspace._id, request.url)\n            : (await context.util.models.cookieJar.getOrCreateForParentId(workspace._id)).cookies;\n          const found = cookies.find(cookie => cookie.key === name);\n          invariant(\n            found,\n            `No cookie with name \"${name}\" found in cookie jar for url \"${request.url}\"\\nChoices are [\\n\\t${cookies.map(c => c.key)}\\n] for`,\n          );\n          return found.value;\n        }\n        if (attribute === 'parameter') {\n          if (!name) {\n            throw new Error('No query parameter specified');\n          }\n\n          const parameterNames: string[] = [];","sourceCodeStart":898,"sourceCodeEnd":934,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/common/templating/local-template-tags.ts#L898-L934","documentation":"Error \"No cookie specified\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:916 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"}