{"record":{"id":"421d68a9f2eeccf8","repo":"NousResearch/hermes-agent","slug":"hermes-gateway-is-not-connected","errorCode":null,"errorMessage":"Hermes gateway is not connected","messagePattern":"Hermes gateway is not connected","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/src/store/projects.ts","lineNumber":338,"sourceCode":"\n    if (projectId !== $projectScope.get()) {\n      enterProject(projectId)\n    }\n  }\n}\n\n// Issue a request on whichever gateway is currently active, reconnecting once\n// if the socket dropped. Projects are per-profile, so they intentionally follow\n// the active gateway just like the session list does.\nasync function gatewayRequest<T>(method: string, params: Record<string, unknown> = {}): Promise<T> {\n  let gateway = activeGateway()\n\n  if (!gateway || gateway.connectionState !== 'open') {\n    gateway = await ensureActiveGatewayOpen()\n  }\n\n  if (!gateway) {\n    throw new Error('Hermes gateway is not connected')\n  }\n\n  return gateway.request<T>(method, params)\n}\n\nasync function gatewayRequestOn<T>(\n  gateway: HermesGateway,\n  method: string,\n  params: Record<string, unknown> = {}\n): Promise<T> {\n  return gateway.request<T>(method, params)\n}\n\ninterface ActiveProjectsContext {\n  gateway: HermesGateway\n  profile: string\n}\n","sourceCodeStart":320,"sourceCodeEnd":356,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/src/store/projects.ts#L320-L356","documentation":"Error \"Hermes gateway is not connected\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/src/store/projects.ts:338 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Connect to the Hermes gateway before managing projects.","Restart or reconnect the backend from Settings → Gateway, then retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}