Kong/insomnia · error

No query parameter specified

Error message

No query parameter specified

What it means

The `parameter` attribute path of the request template tag was reached without a name argument (guard fired before parameter lookup could begin).

Solutions

  1. Provide the query parameter name as the tag argument
  2. Verify the tag's argument list in the template
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:931 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/6227fa307ae27899. Report an issue: GitHub.

Appendix: source

Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:931

        }
        if (attribute === 'cookie') {
          if (!name) {
            throw new Error('No cookie specified');
          }

          const cookies = request.url
            ? await context.util.models.cookieJar.getCookiesForUrl(workspace._id, request.url)
            : (await context.util.models.cookieJar.getOrCreateForParentId(workspace._id)).cookies;
          const found = cookies.find(cookie => cookie.key === name);
          invariant(
            found,
            `No cookie with name "${name}" found in cookie jar for url "${request.url}"\nChoices are [\n\t${cookies.map(c => c.key)}\n] for`,
          );
          return found.value;
        }
        if (attribute === 'parameter') {
          if (!name) {
            throw new Error('No query parameter specified');
          }

          const parameterNames: string[] = [];

          if (request.parameters.length === 0) {
            throw new Error('No query parameters available');
          }

          for (const queryParameter of request.parameters) {
            const queryParameterName = await context.util.render(queryParameter.name);
            queryParameterName && parameterNames.push(queryParameterName);
            if (queryParameterName?.toLowerCase() === name.toLowerCase()) {
              return context.util.render(queryParameter.value);
            }
          }

          const parameterNamesStr = parameterNames.map(n => `"${n}"`).join(',\n\t');
          throw new Error(`No query parameter with name "${name}".\nChoices are [\n\t${parameterNamesStr}\n]`);

View on GitHub (pinned to d9bb2b0142)