{"record":{"id":"10bdd5c1fadad1bd","repo":"usebruno/bruno","slug":"workspace-not-found","errorCode":null,"errorMessage":"Workspace not found","messagePattern":"Workspace not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js","lineNumber":270,"sourceCode":"\n        await dispatch(switchWorkspace(workspaceUid));\n\n        return result;\n      } else {\n        return null;\n      }\n    } catch (error) {\n      throw error;\n    }\n  };\n};\n\nexport const connectCollectionToGit = ({ workspaceUid, collectionPath, remoteUrl }) => {\n  return async (dispatch, getState) => {\n    try {\n      const workspace = getState().workspaces.workspaces.find((w) => w.uid === workspaceUid);\n      if (!workspace) {\n        throw new Error('Workspace not found');\n      }\n\n      await ipcRenderer.invoke(\n        'renderer:connect-collection-to-git',\n        workspace.pathname,\n        collectionPath,\n        remoteUrl\n      );\n\n      return true;\n    } catch (error) {\n      toast.error(error.message || 'Failed to connect Git remote');\n      throw error;\n    }\n  };\n};\n\nexport const disconnectCollectionFromGit = ({ workspaceUid, collectionPath }) => {","sourceCodeStart":252,"sourceCodeEnd":288,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js#L252-L288","documentation":"Error \"Workspace not found\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js:270 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-open the workspace from its directory on disk.","Verify workspace.yml still exists in the workspace path."],"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"}