openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.73k stars 2.42k forks source link

Bug: Image sending and receiving failed due to configuration error #1139

Closed jg-8 closed 6 months ago

jg-8 commented 11 months ago

What happened?

Failure in sending and receiving images.

Observations in the uniapp-demo:

The red color in the top left corner appears to be an indication of sending failure. The spinning circle in the center of the image, highlighted in red, indicates a reception failure.

在 config/config.yaml : object: enable: "minio" apiURL: "外网地址/api" minio: bucket: "openim"

endpoint: "http://172.28.0.1:10005"

endpoint: "外网地址/"
accessKeyID: "root"
secretAccessKey: "openIM123"
sessionToken: ''
signEndpoint: "外网地址/"
publicRead: false

What did you expect to happen?

图片正常收发

How can we reproduce it (as minimally and precisely as possible)?

apiURL endpoint signEndpoint

这三个参数不能是内网地址,app 能访问到

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

skiffer-git commented 11 months ago

First, try using the external IP to see if it works normally.

lakerchen commented 11 months ago

I set signEndpoint: "https://mydomain/path" and fail to send and receive picture. Is it not supported path like /path? I have configure proxy_pass in nginx, https://mydomain/path will redirect to 'http://ip:10005'

kubbot commented 9 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot commented 6 months ago

This issue was closed because it has been stalled for 7 days with no activity.