lobehub / lobe-chat

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

[Bug] 连接腾讯云COS服务 上传文件报错 #4676

Open Zzzz5125 opened 1 day ago

Zzzz5125 commented 1 day ago

📦 部署环境

Docker

📌 软件版本

LobeChat DB v1.31.0

💻 系统环境

Ubuntu

🌐 浏览器

Edge

🐛 问题描述

连接腾讯云COS服务 上传文件日志报错 Error in tRPC handler (edge) on path: upload.createS3PreSignedUrl [TRPCError: Invalid region: region was not a valid DNS name.] { cause: [EndpointError: Invalid region: region was not a valid DNS name.] { name: 'EndpointError' }, code: 'INTERNAL_SERVER_ERROR', name: 'TRPCError' } Error in tRPC handler (edge) on path: upload.createS3PreSignedUrl [TRPCError: Unsupported GET-request to mutation procedure at path "upload.createS3PreSignedUrl"] { cause: undefined, code: 'METHOD_NOT_SUPPORTED', name: 'TRPCError' }

📷 复现步骤

No response

🚦 期望结果

如何修复

📝 补充信息

No response

lobehubbot commented 1 day ago

👀 @Zzzz5125

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

lobehubbot commented 1 day ago

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


📦 Deployment environment

Docker

📌 Software version

LobeChat DB v1.31.0

💻 System environment

Ubuntu

🌐 Browser

Edge

🐛 Problem description

When connecting to Tencent Cloud COS service, an error message is forbidden when uploading files. Tencent Cloud's logs in the bucket show that the request is received and accepted normally, but there is no request in the bucket.

📷 Steps to reproduce

No response

🚦 Expected results

How to fix

📝 Supplementary information

No response