langgenius/dify · error · Error

Console API client has not been initialized for this scenari

Error message

Console API client has not been initialized for this scenario.

What it means

Error "Console API client has not been initialized for this scenario." thrown in langgenius/dify.

Source

Thrown at e2e/features/support/world.ts:173

  }

  async startAuthenticatedSession(browser: Browser) {
    await this.startSession(browser, true)
  }

  async startUnauthenticatedSession(browser: Browser) {
    await this.startSession(browser, false)
  }

  getPage() {
    if (!this.page) throw new Error('Playwright page has not been initialized for this scenario.')

    return this.page
  }

  getConsoleClient() {
    if (!this.consoleClient)
      throw new Error('Console API client has not been initialized for this scenario.')

    return this.consoleClient
  }

  async getAuthSession() {
    this.session ??= await readAuthSessionMetadata()
    return this.session
  }

  registerCleanup(cleanup: ScenarioCleanup) {
    this.scenarioCleanups.push(cleanup)
  }

  runRegisteredCleanups() {
    return runCleanupTasks(
      this.scenarioCleanups.toReversed().map((run, index) => ({
        label: `Registered cleanup ${index + 1}`,
        run,

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at e2e/features/support/world.ts:173 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12). Data as JSON: /api/errors/49e3c4406fa02a12. Report an issue: GitHub.