{"record":{"id":"9eb1993859db8052","repo":"langgenius/dify","slug":"console-api-path-join-redirected-with-st","errorCode":null,"errorMessage":"Console API ${path.join('.')} redirected with ${status}${location ? ` to ${location}` : ''}.","messagePattern":"Console API (.+?) redirected with (.+?)(.+?)` : ''\\}\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"e2e/support/api/playwright-fetch.ts","lineNumber":36,"sourceCode":"\n    const headers = Object.fromEntries(request.headers.entries())\n    delete headers['content-length']\n\n    const data = request.body ? Buffer.from(await request.arrayBuffer()) : undefined\n    const apiResponse = await requestContext.fetch(request.url, {\n      ...(data === undefined ? {} : { data }),\n      failOnStatusCode: false,\n      headers,\n      maxRedirects: 0,\n      method: request.method,\n      timeout: options.context.timeoutMs ?? defaultRequestTimeoutMs,\n    })\n\n    try {\n      const status = apiResponse.status()\n      if (status >= 300 && status < 400) {\n        const location = apiResponse.headers().location\n        throw new Error(\n          `Console API ${path.join('.')} redirected with ${status}${location ? ` to ${location}` : ''}.`,\n        )\n      }\n\n      const responseHeaders = new Headers()\n      for (const { name, value } of apiResponse.headersArray()) responseHeaders.append(name, value)\n      responseHeaders.delete('content-encoding')\n      responseHeaders.delete('content-length')\n      responseHeaders.delete('transfer-encoding')\n\n      const body =\n        request.method === 'HEAD' || bodylessResponseStatuses.has(status)\n          ? null\n          : Uint8Array.from(await apiResponse.body())\n\n      return new Response(body, {\n        headers: responseHeaders,\n        status,","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/e2e/support/api/playwright-fetch.ts#L18-L54","documentation":"Error \"Console API ${path.join('.')} redirected with ${status}${location ? ` to ${location}` : ''}.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at e2e/support/api/playwright-fetch.ts:36 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"}