lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Qwen / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS/Plugins/Artifacts). One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
46.69k stars 10.3k forks source link

[Bug] 使用客户端请求模式时出错 #2386

Closed zhairuoxun closed 7 months ago

zhairuoxun commented 7 months ago

💻 Operating System

Windows

📦 Environment

Vercel / Zeabur / Sealos

🌐 Browser

Edge

🐛 Bug Description

打开“使用客户端请求模式”选项时,做连通性检查会出现报错

{
  "error": {},
  "endpoint": "https://plugin.sm****ot.com/v1",
  "provider": "openai"
}

用同样的配置,不打开这个选项,就可以通过

🚦 Expected Behavior

No response

📷 Recurrence Steps

No response

📝 Additional Information

No response

lobehubbot commented 7 months ago

👀 @zhairuoxun

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 7 months ago

有没有更加详细的提示?看下控制台有没有什么报错?

lobehubbot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Are there any more detailed tips? Check the console to see if there are any errors?

zhairuoxun commented 7 months ago

有没有更加详细的提示?看下控制台有没有什么报错?

您好,我看到的报错信息就只有

{
  "error": {},
  "endpoint": "https://plugin.sm****ot.com/v1",
  "provider": "openai"
}

请问您说的控制台报错在哪里查看?我找一下

lobehubbot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Are there any more detailed tips? Check the console to see if there are any errors?

Hello, the only error message I see is

{
  "error": {},
  "endpoint": "https://plugin.sm****ot.com/v1",
  "provider": "openai"
}

Where can I check the console error you mentioned? I'll look for it

arvinxx commented 7 months ago

![Uploading image.png…]()

在里面找到红的:

![Uploading image.png…]()

zhairuoxun commented 7 months ago

您好,不好意思,我看不到您发的图 image

arvinxx commented 7 months ago
image image
zhairuoxun commented 7 months ago

image 您好,请问这个图片是否可以?

arvinxx commented 7 months ago

箭头所指的这两个展开看下分别截图看下?

image
zhairuoxun commented 7 months ago

“响应标头”原本就是展开的状态,里面什么都没有,”响应“ 部分展开后是这样的 image

arvinxx commented 7 months ago

@zhairuoxun 那你点下这

image

然后再截个完整的图,我看下报错的响应码

zhairuoxun commented 7 months ago

image image image image

您好,这是完整的截图, 余下两个标签页都写着"无法加载响应数据". 我是在Edge浏览器遇到这个问题的, 换成Chrome和Firefox浏览器以后问题仍然存在

lobehubbot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image image image image

Hello, this is a complete screenshot. The remaining two tabs both say "Unable to load response data". I encountered this problem in the Edge browser. After switching to Chrome and Firefox browsers, the problem still exists.

arvinxx commented 7 months ago

@zhairuoxun 我感觉可能是你的这个服务商不支持跨域请求导致的,能去问问看这个服务商的接口是否支持跨域不?

lobehubbot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@zhairuoxun I think it may be because your service provider does not support cross-domain requests. Can you ask if the service provider's interface supports cross-domain requests?