[Q&A] 自部署时 Error 526 导致无法流式返回 #540
-
💻 系统环境 | Operating SystemWindows 🌐 浏览器 | BrowserChrome 🐛 问题描述 | Bug Description从oneapi对接到该项目,不支持流式显示吗?我换了很多模型都是直接全量显示,不是一段一段显示出来的 🚦 期望结果 | Expected Behavior流式显示,一段一段打印出来 📷 复现步骤 | Recurrence Steps对接one api ,不对接场景没测试 📝 补充信息 | Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 1 reply
-
https://chat-preview.lobehub.com/ 在这个预览页面填上你的服务看看,这个应该是部署的问题 |
Beta Was this translation helpful? Give feedback.
-
https://chat-preview.lobehub.com/ Fill in your service on this preview page and take a look. This should be a deployment issue. |
Beta Was this translation helpful? Give feedback.
-
{
"endpoint": "http://xxxxxxx/",
"error": {
"headers": {
"cache-control": "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"cf-as-number": "16509",
"cf-ray": "82e0c1d5b6288b57-HKG",
"connection": "keep-alive",
"content-length": "15",
"content-type": "text/plain; charset=UTF-8",
"date": "Thu, 30 Nov 2023 05:40:42 GMT",
"expires": "Thu, 01 Jan 1970 00:00:01 GMT",
"referrer-policy": "same-origin",
"server": "cloudflare",
"x-frame-options": "SAMEORIGIN"
},
"stack": "Error: 526 error code: 526\n at (vc/edge/function:135:38921)\n at (vc/edge/function:138:6188)\n at (vc/edge/function:138:6938)\n at (vc/edge/function:123:1773)\n at (vc/edge/function:127:85995)",
"status": 526
}
} 会报错。 |
Beta Was this translation helpful? Give feedback.
-
{
"endpoint": "http://xxxxxxx/",
"error": {
"headers": {
"cache-control": "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"cf-as-number": "16509",
"cf-ray": "82e0c1d5b6288b57-HKG",
"connection": "keep-alive",
"content-length": "15",
"content-type": "text/plain; charset=UTF-8",
"date": "Thu, 30 Nov 2023 05:40:42 GMT",
"expires": "Thu, 01 Jan 1970 00:00:01 GMT",
"referrer-policy": "same-origin",
"server": "cloudflare",
"x-frame-options": "SAMEORIGIN"
},
"stack": "Error: 526 error code: 526\n at (vc/edge/function:135:38921)\n at (vc/edge/function:138:6188)\n at (vc/edge/function: 138:6938)\n at (vc/edge/function:123:1773)\n at (vc/edge/function:127:85995)",
"status": 526
}
} An error will be reported. |
Beta Was this translation helpful? Give feedback.
-
会不会可能是https://chat-preview.lobehub.com/网站的防护?我尝试对接one api以及上游api都是一样的526报错 |
Beta Was this translation helpful? Give feedback.
-
Could it be the protection of https://chat-preview.lobehub.com/ website? I tried to connect to one api and upstream api, but the same 526 error was reported. |
Beta Was this translation helpful? Give feedback.
-
One-api对接报错526是cloudflare的问题
要是是第三方部署请提供部署平台名 |
Beta Was this translation helpful? Give feedback.
-
已经解决,是我的反向代理问题,感谢支持! |
Beta Was this translation helpful? Give feedback.
-
It has been solved. It was my reverse proxy problem. Thank you for your support! |
Beta Was this translation helpful? Give feedback.
-
可以尝试在nginx配置文件中添加下面的内容
|
Beta Was this translation helpful? Give feedback.
@itq5
One-api对接报错526是cloudflare的问题
要是是自家服务器:
要是是第三方部署请提供部署平台名