-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Java API无法发图:timeout receiving response of ImgStore.GroupPicUp #175
Comments
能否提供当时发送的原图? |
00:21:12 [INFO] [VexMirai] Sending: https://ali.xinshipu.cn/20180127_63/original/1517036352096.jpg |
可能只是丢包或服务器异常,在下一般本将会允许重试 |
看了一眼你们的代码,timeout 是 1s,这谁能上传的了啊 |
10k一秒有问题吗... |
首先 10K 并不代表网速高于 10K/s,考虑到 TCP 延迟,你再怎么样也要设成3秒,这已经是最低限度了,一般访问公网的网络连接都要设置成 5 秒的超时等待,因为要涉及到连接延迟和收到服务器的回复读取延迟。
请在 WiFi 环境下测试,不要坐在腾讯服务器上想当然。
获取 Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: undefined <[email protected]>
Sent: Tuesday, April 7, 2020 9:17:20 AM
To: mamoe/mirai <[email protected]>
Cc: Nanami Arihara <[email protected]>; Comment <[email protected]>
Subject: Re: [mamoe/mirai] Java API无法发图:timeout receiving response of ImgStore.GroupPicUp (#175)
10k一秒有问题吗...
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#175 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABS4INJHAXYF473OW42R7BTRLJ5KBANCNFSM4LWXCCIQ>.
|
目前没有任何反馈说这个超时存在问题. 当前这个 issue 原因是查询图片是否存在的包超时(更大可能是内容错误), 而不是上传图片 |
这个超时是总时间, 而不是每个分块的时间. 300kb的图都会有 30s 超时时间. 经考虑将限制超时至少为5秒 |
原来是这样,感谢。
…________________________________
From: Him188 <[email protected]>
Sent: Tuesday, April 7, 2020 1:32:42 PM
To: mamoe/mirai <[email protected]>
Cc: Nanami Arihara <[email protected]>; Comment <[email protected]>
Subject: Re: [mamoe/mirai] Java API无法发图:timeout receiving response of ImgStore.GroupPicUp (#175)
300kb的图都会有 30s 超时时间. 经考虑将限制超时至少为5秒
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#175 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABS4INNIFI67ZF4FFKYANJ3RLK3HVANCNFSM4LWXCCIQ>.
|
增加了超时和重试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题
无法使用Java API发送图片.
如何复现
message.getGroup().sendMessage(message.getGroup().uploadImage(vex.getFoodImg()));
getFoodImg返回正确的URL对象
message: GroupMessage
The text was updated successfully, but these errors were encountered: