-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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] The error returned to user is not detailed enough when getting OpenAIBizError #465
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
you are right. we should add more info when meet this error. |
By the way, why your message shows Chinese other than English? Do you use Chinese? |
Yep, i'm a Chinese native speaker, but used to communicate in English on gh |
This issue is closed, If you have any questions, you can comment and reply. |
🎉 This issue has been resolved in version 0.101.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
💻 系统环境 | Operating System
macOS
🌐 浏览器 | Browser
Chrome
🐛 问题描述 | Bug Description
Since this morning, the Lobe-Chat deployed on Vercel suddenly stopped working. When chatting, the frontend threw an error: "请求 OpenAI 服务出错,请根据以下信息排查或重试" The error message only included the endpoint without any details, and from the Vercel logs, I could only see a 577 error status code. All these indicate that the OpenAI interface was reporting an error, but I couldn't determine the specific reason, which led to the inability to resolve the issue.
Finally, in another Telegram group chat, I heard that the problem was due to API regional restrictions causing the API to fail. I briefly looked at the code, but I still don't understand it very well. Intuitively, I think the error message should be more comprehensive, including the error information of the OpenAI interface, HTTP status codes, and so on.
lobe-chat/src/app/api/openai/chat/createChatCompletion.ts
Lines 38 to 43 in 5bdbd6a
🚦 期望结果 | Expected Behavior
Intuitively, I think the error message should be more comprehensive, including the error information of the OpenAI interface, HTTP status codes, and so on.
📷 复现步骤 | Recurrence Steps
No response
📝 补充信息 | Additional Information
No response
The text was updated successfully, but these errors were encountered: