{"record":{"id":"6b3944afd5b85360","repo":"hoppscotch/hoppscotch","slug":"pm-collectionvariables-unset-is-not-supported-in","errorCode":null,"errorMessage":"pm.collectionVariables.unset() is not supported in Hoppscotch (use environment or request variables instead)","messagePattern":"pm\\.collectionVariables\\.unset\\(\\) is not supported in Hoppscotch \\(use environment or request variables instead\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/hoppscotch-js-sandbox/src/bootstrap-code/post-request.js","lineNumber":4054,"sourceCode":"          \"pm.iterationData.toJSON() is not supported in Hoppscotch (Collection Runner feature)\"\n        )\n      },\n    },\n\n    // Collection variables (unsupported)\n    collectionVariables: {\n      get: () => {\n        throw new Error(\n          \"pm.collectionVariables.get() is not supported in Hoppscotch (use environment or request variables instead)\"\n        )\n      },\n      set: () => {\n        throw new Error(\n          \"pm.collectionVariables.set() is not supported in Hoppscotch (use environment or request variables instead)\"\n        )\n      },\n      unset: () => {\n        throw new Error(\n          \"pm.collectionVariables.unset() is not supported in Hoppscotch (use environment or request variables instead)\"\n        )\n      },\n      has: () => {\n        throw new Error(\n          \"pm.collectionVariables.has() is not supported in Hoppscotch (use environment or request variables instead)\"\n        )\n      },\n      clear: () => {\n        throw new Error(\n          \"pm.collectionVariables.clear() is not supported in Hoppscotch (use environment or request variables instead)\"\n        )\n      },\n      toObject: () => {\n        throw new Error(\n          \"pm.collectionVariables.toObject() is not supported in Hoppscotch (use environment or request variables instead)\"\n        )\n      },","sourceCodeStart":4036,"sourceCodeEnd":4072,"githubUrl":"https://github.com/hoppscotch/hoppscotch/blob/1acb8a3a7581e4db32ba0d529170c4669a2e1053/packages/hoppscotch-js-sandbox/src/bootstrap-code/post-request.js#L4036-L4072","documentation":"Error \"pm.collectionVariables.unset() is not supported in Hoppscotch (use environment or request variables instead)\" thrown in hoppscotch/hoppscotch.","triggerScenarios":"Thrown at packages/hoppscotch-js-sandbox/src/bootstrap-code/post-request.js:4054 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":"1acb8a3a7581e4db32ba0d529170c4669a2e1053","analyzedAt":"2026-08-12T11:34:52.648Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}