{"record":{"id":"6227fa307ae27899","repo":"Kong/insomnia","slug":"no-query-parameter-specified","errorCode":null,"errorMessage":"No query parameter specified","messagePattern":"No query parameter specified","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/common/templating/local-template-tags.ts","lineNumber":931,"sourceCode":"        }\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[] = [];\n\n          if (request.parameters.length === 0) {\n            throw new Error('No query parameters available');\n          }\n\n          for (const queryParameter of request.parameters) {\n            const queryParameterName = await context.util.render(queryParameter.name);\n            queryParameterName && parameterNames.push(queryParameterName);\n            if (queryParameterName?.toLowerCase() === name.toLowerCase()) {\n              return context.util.render(queryParameter.value);\n            }\n          }\n\n          const parameterNamesStr = parameterNames.map(n => `\"${n}\"`).join(',\\n\\t');\n          throw new Error(`No query parameter with name \"${name}\".\\nChoices are [\\n\\t${parameterNamesStr}\\n]`);","sourceCodeStart":913,"sourceCodeEnd":949,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/common/templating/local-template-tags.ts#L913-L949","documentation":"Error \"No query parameter specified\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:931 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"}