-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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] 使用clerk,预览知识库文件报错 Error: Clerk: auth() was called but Clerk can't detect usage of clerkMiddleware() #6762
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey @dream-north! I'm here to help you with any bugs or questions you have. Let's get this sorted out together. It seems like you're encountering an issue with Clerk authentication in a production environment when previewing files in the knowledge base. A similar issue was previously discussed, where the solution involved ensuring that the
By ensuring these configurations are correctly set up, you should be able to resolve the error related to Clerk authentication. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
📦 部署环境
Docker
📦 部署模式
服务端模式(lobe-chat-database 镜像)
📌 软件版本
1.67.2
💻 系统环境
Ubuntu
🌐 浏览器
Chrome
🐛 问题描述
使用自己构建的镜像部署(为了加入clerk相关环境变量)
测试环境的clerk没有问题,改为生产环境的clerk重新构建后,登录、问答、使用知识库都运行良好。
但是在知识库预览文件时报如下错误。
📷 复现步骤
自己构建docker镜像,通过docker-compose部署
在Dockerfile.database的第75行加入
在知识库中预览文件
🚦 期望结果
No response
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: