{"record":{"id":"6d53edc4d2c1268d","repo":"usebruno/bruno","slug":"workspace-path-is-required-6d53ed","errorCode":null,"errorMessage":"Workspace path is required","messagePattern":"Workspace path is required","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/store/workspace-environments.js","lineNumber":88,"sourceCode":"\n    if (this.envHasSecrets(environment)) {\n      const envSecrets = environmentSecretsStore.getEnvSecrets(workspacePath, environment);\n      _.each(envSecrets, (secret) => {\n        const variable = _.find(environment.variables, (v) => v.name === secret.name && v.secret);\n        if (variable && secret.value) {\n          const decryptionResult = decryptStringSafe(secret.value);\n          variable.value = parseValueByDataType(decryptionResult.value, variable.dataType);\n        }\n      });\n    }\n\n    return environment;\n  }\n\n  async getGlobalEnvironments(workspacePath) {\n    try {\n      if (!workspacePath) {\n        throw new Error('Workspace path is required');\n      }\n\n      const environmentsDir = this.getEnvironmentsDir(workspacePath);\n\n      if (!fs.existsSync(environmentsDir)) {\n        return {\n          globalEnvironments: []\n        };\n      }\n\n      const files = fs.readdirSync(environmentsDir);\n      const environments = [];\n\n      for (const file of files) {\n        if (file.endsWith(ENV_FILE_EXTENSION)) {\n          const filePath = path.join(environmentsDir, file);\n\n          try {","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/store/workspace-environments.js#L70-L106","documentation":"Error \"Workspace path is required\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/store/workspace-environments.js:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open a workspace before managing workspace environments.","Provide a valid workspace path to the call."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}