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] The latest version of LobeChat - server database edition cannot upload images #4673

Closed
Liyuzhou01 opened this issue Nov 12, 2024 · 5 comments
Labels
files 上传文件/知识库 🤔 Need Reproduce Further information is requested | 需要更多信息复现

Comments

@Liyuzhou01
Copy link

📦 Environment

Docker

📌 Version

v1.31.0

💻 Operating System

Ubuntu

🌐 Browser

Edge

🐛 Bug Description

This error only occurs when uploading images; PDFs or other file types can be uploaded normally. The images can be seen in my R2 bucket.My API also works normally for image exchanges in other places.
截屏2024-11-12 11 30 13

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

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

👀 @Liyuzhou01

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

@dosubot dosubot bot added the files 上传文件/知识库 label Nov 12, 2024
Copy link

dosubot bot commented Nov 12, 2024

@Liyuzhou01 你好! 我是Dosu,我是一个可以帮助你解决bug,回答问题,成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。

I found a similar open issue related to image uploads in the LobeChat repository: [Bug] Uploading pictures shows payload garbled code, which might be relevant to your problem. This issue is still open and was last updated on October 16, 2024 [1].

Additionally, there is a discussion about a CORS error when uploading images with lowercase extensions: [Bug] 上传小写后缀图片(如.jpg, .png)报CORS错误。, which might also be related to your issue [2].

For your specific problem, ensure that your CORS settings are correctly configured in your R2 bucket, as incorrect settings can lead to upload issues. The LobeChat server handles CORS configurations by setting rules in the S3 storage service, allowing requests from specific domains and specifying allowed methods and headers [3][4].

To continue talking to Dosu, mention @dosu.

@arvinxx
Copy link
Contributor

arvinxx commented Nov 12, 2024

image

check your api key. switch to OpenAI official key and try again. Mostly it's your api key provider's issue.

@arvinxx arvinxx added 🤔 Need Reproduce Further information is requested | 需要更多信息复现 and removed 🐛 Bug Something isn't working | 缺陷 labels Nov 12, 2024
@lobehubbot
Copy link
Member

👋 @{{ author }}


Since the issue was labeled with 🤔 Need Reproduce, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

@lobehubbot lobehubbot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Nov 16, 2024
@lobehubbot
Copy link
Member

@Liyuzhou01

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
files 上传文件/知识库 🤔 Need Reproduce Further information is requested | 需要更多信息复现
Projects
Status: Done
Development

No branches or pull requests

3 participants