{"record":{"id":"20b6d95a5c875fbb","repo":"Kong/insomnia","slug":"workspace-not-found-for-meta-workspaceid","errorCode":null,"errorMessage":"Workspace not found for ${meta.workspaceId}","messagePattern":"Workspace not found for (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/common/templating/local-template-tags.ts","lineNumber":899,"sourceCode":"        },\n      ],\n\n      async run(context, attribute, name, folderIndex) {\n        const { meta } = context;\n\n        if (!meta.requestId || !meta.workspaceId) {\n          return null;\n        }\n\n        const request = await context.util.models.request.getById(meta.requestId);\n        const workspace = await context.util.models.workspace.getById(meta.workspaceId);\n\n        if (!request) {\n          throw new Error(`Request not found for ${meta.requestId}`);\n        }\n\n        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          }","sourceCodeStart":881,"sourceCodeEnd":917,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/common/templating/local-template-tags.ts#L881-L917","documentation":"Error \"Workspace not found for ${meta.workspaceId}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/common/templating/local-template-tags.ts:899 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"}