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

S3 storage: Not able to use bitiful.com as S3 storage #4710

Open
YiyangLu opened this issue Nov 16, 2024 · 3 comments
Open

S3 storage: Not able to use bitiful.com as S3 storage #4710

YiyangLu opened this issue Nov 16, 2024 · 3 comments
Labels
files 上传文件/知识库

Comments

@YiyangLu
Copy link

📝 Reference

https://github.com/lobehub/lobe-chat/tree/main/docs/self-hosting/server-database/vercel.zh-CN.mdx

🐛 Feedback

Success fully deploy cloudflare R2 S3 storage. Then, I switch to other S3 storage provider and meet the problem.

When using bitful.com with correct keys, we would get SignatureDoesNotMatch (error 403) for file uploading:
The request signature we calculated does not match the signature you provided. Check your key and signing method.

@lobehubbot
Copy link
Member

👀 @YiyangLu

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

Copy link

dosubot bot commented Nov 16, 2024

Hello, @YiyangLu! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve this issue.

The error you're encountering, "SignatureDoesNotMatch," typically indicates an issue with the signature calculation for the S3 request. This can happen if the signing method or the parameters used for generating the signature are not compatible with the specific S3 provider, in this case, bitiful.com.

Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Verify Credentials: Double-check that the access key and secret key are correct and have the necessary permissions for the operations you're trying to perform.

  2. Check Endpoint Configuration: Ensure that the endpoint URL is correctly configured for bitiful.com. Different S3-compatible providers might have different endpoint formats.

  3. Review Signature Version: Some S3-compatible providers may require a specific signature version (e.g., v2 or v4). Verify if bitiful.com requires a specific version and ensure your configuration matches this requirement.

  4. Path vs. Virtual Hosted Style: Check if bitiful.com requires path-style or virtual-hosted-style URLs and configure your requests accordingly.

  5. Custom Signing Method: If bitiful.com has specific requirements for signing requests, you might need to implement a custom signing method. Unfortunately, I couldn't find specific documentation in the Lobe Chat framework for custom signing methods, so you may need to refer to bitiful.com's documentation for guidance.

If these steps do not resolve the issue, you may need to consult bitiful.com's documentation or support for more specific guidance on their S3 implementation.

To continue talking to Dosu, mention @dosu.

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

Zolyn commented Nov 20, 2024

#3464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
files 上传文件/知识库
Projects
None yet
Development

No branches or pull requests

3 participants