openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
39 stars 48 forks source link

[BUG] oss image upload prompts signature error, cos upload prompts 403 error, minio is normal #166

Closed hackerjmss closed 3 weeks ago

hackerjmss commented 1 month ago

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

按照配置修改了 oss 或者 cos 都无法成功上传图片,都提示失败

oss 提示签名错误, cos 提示 403 错误

Screenshots Link

No response

icey-yu commented 1 month ago

Could you please provide more detailed configuration information?

kubbot commented 1 month ago

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


![Uploading 352406344-dbf28c82-27c1-4853-a6a6-efdddbb9e216.jpg…]()

hackerjmss commented 1 month ago

352406344-dbf28c82-27c1-4853-a6a6-efdddbb9e216

kubbot commented 1 month ago

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


352406344-dbf28c82-27c1-4853-a6a6-efdddbb9e216

icey-yu commented 4 weeks ago

Could you please provide the contents of the configuration file?

hackerjmss commented 4 weeks ago

WX20240816-175919@2x WX20240816-175942@2x

hackerjmss commented 4 weeks ago

environment:

withchao commented 4 weeks ago

Check whether the configuration key is correct

hackerjmss commented 4 weeks ago

密钥是正确的 我使用 oss 可以直接登录 WX20240816-190418@2x

kubbot commented 4 weeks ago

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


The key is correct. I can log in directly using oss. WX20240816-190418@2x

skiffer-git commented 4 weeks ago

I recommend using the official OSS SDK. Just input your key and secret, and try to access it.

hackerjmss commented 4 weeks ago

我尝试了,是正常可访问的

kubbot commented 4 weeks ago

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


I tried it and it is accessible normally

hackerjmss commented 4 weeks ago

WX20240817-120135 WX20240817-120247@2x WX20240817-120311@2x 我不知道什么原因,cos oss 都不行 都会提示签名错误

kubbot commented 4 weeks ago

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


WX20240817-120135 WX20240817-120247@2x WX20240817-120311@2x I don’t know why, even if it doesn’t work with cos oss, it will prompt a signature error.

icey-yu commented 3 weeks ago

Remove all the double quotes from the environment variables and try it.

hackerjmss commented 3 weeks ago

WX20240819-183158@2x I've removed the double quotes, but the error persists

icey-yu commented 3 weeks ago

This could be caused by a CORS issue, and you need to configure the settings in the management console.