{"record":{"id":"93537a58b9149180","repo":"langgenius/dify","slug":"timed-out-waiting-for-web-server-readiness-at-ba","errorCode":null,"errorMessage":"Timed out waiting for web server readiness at ${baseURL} after ${timeoutMs}ms.","messagePattern":"Timed out waiting for web server readiness at (.+?) after (.+?)ms\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"e2e/support/web-server.ts","lineNumber":77,"sourceCode":"  const deadline = Date.now() + timeoutMs\n  while (Date.now() < deadline) {\n    if (startupError) {\n      await stopManagedProcess(activeProcess)\n      activeProcess = undefined\n      throw startupError\n    }\n\n    try {\n      await waitForUrl(baseURL, 1_000, 250, 1_000)\n      return\n    } catch {\n      // Continue polling until timeout or child exit.\n    }\n  }\n\n  await stopManagedProcess(activeProcess)\n  activeProcess = undefined\n  throw new Error(`Timed out waiting for web server readiness at ${baseURL} after ${timeoutMs}ms.`)\n}\n\nexport const stopWebServer = async () => {\n  await stopManagedProcess(activeProcess)\n  activeProcess = undefined\n}\n","sourceCodeStart":59,"sourceCodeEnd":84,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/e2e/support/web-server.ts#L59-L84","documentation":"Error \"Timed out waiting for web server readiness at ${baseURL} after ${timeoutMs}ms.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at e2e/support/web-server.ts:77 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":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}