{"record":{"id":"49e3c4406fa02a12","repo":"langgenius/dify","slug":"console-api-client-has-not-been-initialized-for-th","errorCode":null,"errorMessage":"Console API client has not been initialized for this scenario.","messagePattern":"Console API client has not been initialized for this scenario\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"e2e/features/support/world.ts","lineNumber":173,"sourceCode":"  }\n\n  async startAuthenticatedSession(browser: Browser) {\n    await this.startSession(browser, true)\n  }\n\n  async startUnauthenticatedSession(browser: Browser) {\n    await this.startSession(browser, false)\n  }\n\n  getPage() {\n    if (!this.page) throw new Error('Playwright page has not been initialized for this scenario.')\n\n    return this.page\n  }\n\n  getConsoleClient() {\n    if (!this.consoleClient)\n      throw new Error('Console API client has not been initialized for this scenario.')\n\n    return this.consoleClient\n  }\n\n  async getAuthSession() {\n    this.session ??= await readAuthSessionMetadata()\n    return this.session\n  }\n\n  registerCleanup(cleanup: ScenarioCleanup) {\n    this.scenarioCleanups.push(cleanup)\n  }\n\n  runRegisteredCleanups() {\n    return runCleanupTasks(\n      this.scenarioCleanups.toReversed().map((run, index) => ({\n        label: `Registered cleanup ${index + 1}`,\n        run,","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/e2e/features/support/world.ts#L155-L191","documentation":"Error \"Console API client has not been initialized for this scenario.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at e2e/features/support/world.ts:173 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"}