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

[Image message failed to send, attempts with both flutter-sdk and web failed; text messages are sending normally] #2439

Closed
pokid opened this issue Jul 25, 2024 · 6 comments
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@pokid
Copy link

pokid commented Jul 25, 2024

OpenIM Server Version

3.7.1

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

部署流程:
docker部署,配置好MINIO_EXTERNAL_ADDRESS和GRAFANA_URL后,docker compose up -d启动服务。

问题发现流程:
1、自己使用flutter-sdk发送文本消息,成功
2、使用flutter-sdk发送图片和文本消息,报错,看着像是sdk发送图片消息没读到host,报错日志如下:
PlatformException(10005, error *url.Error not implement CodeError: Put "http://external_ip:10005/openim/openim/temp/2024/07/25/03/17/27/25a1bbb54abca710249681758c3da4f4_1014915_8da96bdafe9a4fd3a0886e9e5ed149a2.presigned?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=root%2F20240725%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240725T031727Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=f92a80bec6a1fc442e5e82a692d146a24daceb83f3a2cace4d851d59790836cb": dial tcp: lookup external_ip: no such host, null, null)

3、使用web发送文本消息,成功
4、使用web发送图片消息,失败,失败日志:
ERROR [PID:1018] openim-api [version:3.7.0] [mw/rpc_client_interceptor.go:50] RPC Client Response Error - AuthSign {"platform": "Web", "operationID": "4eea2a55-8a73-4273-8324-7d05257b13c1", "opUserID": "8979475346", "funcName": "/openim.third.third/AuthSign", "error": "rpc error: code = Code(500) desc = invalid multipart upload id: unexpected end of JSON input"}

Screenshots Link

image

No response

@pokid pokid added the bug Categorizes issue or PR as related to a bug. label Jul 25, 2024
@kubbot kubbot changed the title [BUG] [BUG] Jul 25, 2024
@kubbot
Copy link
Contributor

kubbot commented Jul 25, 2024

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@pokid pokid changed the title [BUG] [图片消息发送失败,尝试flutter-sdk和web均失败;文本消息正常发送] Jul 25, 2024
@skiffer-git skiffer-git changed the title [图片消息发送失败,尝试flutter-sdk和web均失败;文本消息正常发送] [Image message failed to send, attempts with both flutter-sdk and web failed; text messages are sending normally] Jul 26, 2024
@skiffer-git
Copy link
Member

skiffer-git commented Jul 26, 2024

MINIO_EXTERNAL_ADDRESS="http://external_ip:10005"
GRAFANA_URL="http://external_ip:13000/"
docker compose down
docker compose up -d

@pokid
Copy link
Author

pokid commented Jul 27, 2024

MINIO_EXTERNAL_ADDRESS="http://external_ip:10005" GRAFANA_URL="http://external_ip:13000/" docker compose down docker compose up -d

Unfortunately, my process is exactly like this. I can only send text messages. The above error message is reported when sending picture messages. It is the same even when using the built-in web send

@pokid
Copy link
Author

pokid commented Jul 27, 2024

截屏2024-07-27 09 07 55

@pokid
Copy link
Author

pokid commented Jul 27, 2024

also as voice, and i use createSoundMessageFromFullPath.
im sure i set the MINIO_EXTERNAL_ADDRESS="http://external_ip:10005" GRAFANA_URL="http://external_ip:13000/", so i can sen text message successfully

@pokid
Copy link
Author

pokid commented Aug 5, 2024

sorry,its a misunderstand,my problem. what i Modified is the system environment variables,but what should really be modified is the .env file。hahaha,anyone who see this can check about it

@pokid pokid closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants