{"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":"Wrapped error from harvestFromContainer's catch block: the AbortController fired before the cookie/localStorage harvest completed, so any underlying failure is replaced with this timeout sentinel. Means the CDP conversation (connect + Storage.getCookies / DOM storage reads) exceeded harvestTimeoutMs (default 20s) against the browser container — a slow or wedged Chromium, or an oversized profile being enumerated.","triggerScenarios":"Thrown at src/lib/vncSession/harvest.ts:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the harvest — transient browser slowness on first profile load often clears","Increase VNC_CONFIG.harvestTimeoutMs if profiles are large","Confirm the container's browser is responsive (CDP /json/version answers quickly)","If it consistently times out, stop the session and restart browser login with a fresh profile"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}