{"record":{"id":"83e1f8107f37afa2","repo":"diegosouzapw/OmniRoute","slug":"browser-credential-harvest-timed-out-after-timeo","errorCode":null,"errorMessage":"Browser credential harvest timed out after ${timeoutMs}ms","messagePattern":"Browser credential harvest timed out after (.+?)ms","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/vncSession/harvest.ts","lineNumber":336,"sourceCode":"      : \"\";\n\n    const baseResult: HarvestResult = {\n      cookies,\n      localStorage: declaredStorage,\n      cookieHeader,\n      hasCredential: false,\n    };\n    const credentials = harvestToCredentials(baseResult, provider);\n    const hasCredential =\n      typeof credentials.apiKey === \"string\" ||\n      Object.values(credentials.providerSpecificData).some(\n        (value) => typeof value === \"string\" && value.length > 0\n      );\n\n    return { ...baseResult, hasCredential };\n  } catch (error) {\n    if (controller.signal.aborted) {\n      throw new Error(`Browser credential harvest timed out after ${timeoutMs}ms`);\n    }\n    throw error;\n  } finally {\n    clearTimeout(timeout);\n    client?.close();\n  }\n}\n\nexport function harvestToCredentials(\n  harvest: HarvestResult,\n  provider: VncProviderEntry\n): { providerSpecificData: Record<string, string>; apiKey: string | null } {\n  const requirement = provider.requirement;\n  const providerSpecificData: Record<string, string> = {};\n\n  for (const key of requirement.storageKeys) {\n    if (key === \"cookie\") continue;\n    const value =","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/vncSession/harvest.ts#L318-L354","documentation":"Error \"Browser credential harvest timed out after ${timeoutMs}ms\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/vncSession/harvest.ts:336 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}