{"record":{"id":"47f099ac7ea6339c","repo":"NousResearch/hermes-agent","slug":"current-error-oauth-authorization-failed","errorCode":null,"errorMessage":"current.error || 'OAuth authorization failed'","messagePattern":"current\\.error \\|\\| 'OAuth authorization failed'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/desktop/src/lib/mcp-dashboard-oauth.ts","lineNumber":91,"sourceCode":"      pollFailures = 0\n    } catch (error) {\n      pollFailures += 1\n\n      if (pollFailures >= maxPollFailures) {\n        throw error\n      }\n\n      await sleep(1000)\n\n      continue\n    }\n\n    if (current.status === 'approved') {\n      return current\n    }\n\n    if (current.status === 'error') {\n      throw new Error(current.error || 'OAuth authorization failed')\n    }\n\n    await sleep(1000)\n  }\n}\n","sourceCodeStart":73,"sourceCodeEnd":97,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/apps/desktop/src/lib/mcp-dashboard-oauth.ts#L73-L97","documentation":"Error \"current.error || 'OAuth authorization failed'\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at apps/desktop/src/lib/mcp-dashboard-oauth.ts:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the authorization; the provider returned an error.","Check the OAuth error shown by the provider and fix client/redirect settings.","Re-run the sign-in flow from Settings after correcting the OAuth configuration."],"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-16T03:17:38.424Z"}