langgenius/dify · error · Error

Console API ${path.join('.')} redirected with ${status}${loc

Error message

Console API ${path.join('.')} redirected with ${status}${location ? ` to ${location}` : ''}.

What it means

Error "Console API ${path.join('.')} redirected with ${status}${location ? ` to ${location}` : ''}." thrown in langgenius/dify.

Source

Thrown at e2e/support/api/playwright-fetch.ts:36

    const headers = Object.fromEntries(request.headers.entries())
    delete headers['content-length']

    const data = request.body ? Buffer.from(await request.arrayBuffer()) : undefined
    const apiResponse = await requestContext.fetch(request.url, {
      ...(data === undefined ? {} : { data }),
      failOnStatusCode: false,
      headers,
      maxRedirects: 0,
      method: request.method,
      timeout: options.context.timeoutMs ?? defaultRequestTimeoutMs,
    })

    try {
      const status = apiResponse.status()
      if (status >= 300 && status < 400) {
        const location = apiResponse.headers().location
        throw new Error(
          `Console API ${path.join('.')} redirected with ${status}${location ? ` to ${location}` : ''}.`,
        )
      }

      const responseHeaders = new Headers()
      for (const { name, value } of apiResponse.headersArray()) responseHeaders.append(name, value)
      responseHeaders.delete('content-encoding')
      responseHeaders.delete('content-length')
      responseHeaders.delete('transfer-encoding')

      const body =
        request.method === 'HEAD' || bodylessResponseStatuses.has(status)
          ? null
          : Uint8Array.from(await apiResponse.body())

      return new Response(body, {
        headers: responseHeaders,
        status,

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at e2e/support/api/playwright-fetch.ts:36 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/9eb1993859db8052. Report an issue: GitHub.