Mrs4s / go-cqhttp

cqhttp的golang实现,轻量、原生跨平台.
GNU Affero General Public License v3.0
10.36k stars 1.63k forks source link

[Bug]: 频道无法发送带特定图片的消息 #1618

Closed Cloud-wish closed 2 years ago

Cloud-wish commented 2 years ago

请确保您已阅读以上注意事项,并勾选下方的确认框。

go-cqhttp 版本

v1.0.0-rc3

运行环境

Ubuntu

运行架构

AMD64

连接方式

HTTP

使用协议

0 | iPad

重现步骤

在任意频道发送包含[CQ:image,file=https://wx2.sinaimg.cn/orj480/007Raq4zly8h4wowhejrdj30u00u077a.jpg]的消息 在任意频道发送包含[CQ:image,file=https://wx4.sinaimg.cn/large/006djM0Zgy1h50fa8r6r8j32u724oqv6.jpg]的消息(8月9日测试) (该bug似乎与腾讯服务器端有关,昨天不能发送的今天能发了)

期望的结果是什么?

消息成功发送

实际的结果是什么?

消息不会被发送,go-cqhttp无报错提示,返回的消息ID以"0-"开头

简单的复现代码/链接(可选)

No response

日志记录(可选)

(频道和账号相关信息用*****表示)
[2022-08-07 22:02:28] [DEBUG]: HTTPServer接收到API调用: send_guild_channel_msg 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: ImgStore.QQMeetPicUp seq: 13906 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: MsgProxy.SendMsg seq: 13907 
[2022-08-07 22:02:29] [INFO]: 发送频道 *****频道(*****) 子频道 欢迎萌新(*****) 的消息: [CQ:image, ... (0-4233266419) 
[2022-08-07 22:02:29] [DEBUG]: HTTPServer接收到API调用: send_guild_channel_msg 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: ImgStore.QQMeetPicUp seq: 13908 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: MsgProxy.SendMsg seq: 13909 
[2022-08-07 22:02:29] [INFO]: 发送频道 *****频道(*****) 子频道 欢迎萌新(*****) 的消息: [CQ:image, ... (0-4241584214) 
[2022-08-07 22:02:29] [DEBUG]: HTTPServer接收到API调用: send_guild_channel_msg 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: ImgStore.QQMeetPicUp seq: 13910 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: MsgPush.PushGroupProMsg seq: -150084728 
[2022-08-07 22:02:29] [DEBUG]: Protocol -> rev pkt: trpc.group_pro.synclogic.SyncLogic.GetChannelMsg seq: 13912 
[2022-08-07 22:02:30] [DEBUG]: Protocol -> rev pkt: MsgProxy.SendMsg seq: 13911 
[2022-08-07 22:02:30] [INFO]: 发送频道 *****频道(*****) 子频道 欢迎萌新(*****) 的消息: [CQ:image, ... (0-2438245909) 
[2022-08-07 22:02:30] [DEBUG]: 向反向WS Universal服务器推送Event: {"post_type":"meta_event","meta_event_type":"heartbeat","time":1659880950,"self_id":*********,"sta
tus":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":52,"packet_sent":35,"packet_l
ost":0,"message_received":0,"message_sent":0,"last_message_time":0,"disconnect_times":0,"lost_times":0}},"interval":5000}

补充说明(可选)

运行环境是可以正常访问到该图片的,不使用链接发送,把该图片下载到本地发送也会出现同样的情况。群消息暂未测试,因为我的所有QQ号用go-cqhttp都被风控,无法发送群消息。

Cloud-wish commented 2 years ago

这个bug似乎是腾讯服务器端的问题,目前我使用的workaround是对图片进行任意编辑(换格式,放大缩小等等)后就可以发送了