{"record":{"id":"4adf603b5f8aff0a","repo":"Kong/insomnia","slug":"vault-can-not-be-unset-in-script","errorCode":null,"errorMessage":"Vault can not be unset in script","messagePattern":"Vault can not be unset in script","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia-scripting-environment/src/objects/environments.ts","lineNumber":420,"sourceCode":"      // throw error on get or set method call if enableVaultInScripts is false\n      get: (target, prop, receiver) => {\n        if (!enableVaultInScripts) {\n          throw new Error('Vault is disabled in script');\n        }\n        return Reflect.get(target, prop, receiver);\n      },\n      set: (target, prop, value, receiver) => {\n        if (!enableVaultInScripts) {\n          throw new Error('Vault is disabled in script');\n        }\n        return Reflect.set(target, prop, value, receiver);\n      },\n    });\n  }\n\n  /** @ignore */\n  unset = () => {\n    throw new Error('Vault can not be unset in script');\n  };\n\n  /** @ignore */\n  clear = () => {\n    throw new Error('Vault can not be cleared in script');\n  };\n\n  /** @ignore */\n  set = () => {\n    throw new Error('Vault can not be set in script');\n  };\n}\n","sourceCodeStart":402,"sourceCodeEnd":433,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-scripting-environment/src/objects/environments.ts#L402-L433","documentation":"Error \"Vault can not be unset in script\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-scripting-environment/src/objects/environments.ts:420 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"}