Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 分块失败 NoChunkError #5046

Open
SystemDev01 opened this issue Dec 16, 2024 · 2 comments
Open

[Bug] 分块失败 NoChunkError #5046

SystemDev01 opened this issue Dec 16, 2024 · 2 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@SystemDev01
Copy link

📦 部署环境

Docker

📌 软件版本

v1.36.25

💻 系统环境

Windows

🌐 浏览器

Edge

🐛 问题描述

image
image

查看浏览器F12,没有接口报错,日志报错如下
next auth: undefined
a [TRPCError]: UNAUTHORIZED
at /app/.next/server/chunks/93519.js:1:1932
at f (/app/.next/server/chunks/88615.js:4:74)
at r (/app/.next/server/chunks/88615.js:1:5810)
at /app/.next/server/chunks/20516.js:1:7781
at Array.map ()
at g (/app/.next/server/chunks/20516.js:1:7318)
at async _ (/app/.next/server/app/(backend)/trpc/lambda/[trpc]/route.js:1:3799)
at async /app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36932
at async eC.execute (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:27548)
at async eC.handle (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38186)
at async doRender (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/server/base-server.js:1359:42)
at async cacheEntry.responseCache.get.routeKind (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/server/base-server.js:1581:28)
at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/server/base-server.js:1489:28)
at async NextNodeServer.renderPageComponent (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/server/base-server.js:1913:24)
at async NextNodeServer.renderToResponseImpl (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/server/base-server.js:1951:32)
at async NextNodeServer.pipeImpl (/app/node_modules/.pnpm/next@14.2.8_@babel+core@7.26.0_@opentelemetry+api@1.9.0_@playwright+test@1.49.1_react-d_1cf2c798572f9d55dae58de467e3f455/node_modules/next/dist/server/base-server.js:917:25) {
cause: undefined,
code: 'UNAUTHORIZED'
}
[Chunking Error] n {
name: 'NoChunkError',
body: {
detail: 'No chunk found in this file. it may due to current chunking method can not parse file accurately'
}
}

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@SystemDev01 SystemDev01 added the 🐛 Bug Something isn't working | 缺陷 label Dec 16, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Dec 16, 2024
@lobehubbot
Copy link
Member

👀 @SystemDev01

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Dec 16, 2024

I found a similar unsolved discussion regarding issues with Docker deployment and reverse proxy, which might be related to your environment setup [1].

For the "chunking failed" issue, it seems like the current chunking method might not be accurately parsing the PDF file. Unfortunately, I couldn't find specific details about the chunking method used in the lobe-chat codebase. You might want to check if there are any updates or patches available that address this issue.

Regarding the 'UNAUTHORIZED' error, ensure that your authentication setup is correct. Verify that ctx.userId is set, and check your authentication token and environment variables like NEXTAUTH_URL, NEXT_AUTH_SECRET, and AUTH_AUTH0_ISSUER if you're using Auth0 [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@SystemDev01 SystemDev01 changed the title [Bug] 分块失败 [Bug] 分块失败 NoChunkError Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants