ProtobufBot / Go-Mirai-Client

基于MiraiGo的客户端,使用反向 websocket 收发私聊、群聊消息,消息格式类似onebot。支持多账号,很稳定
GNU Affero General Public License v3.0
139 stars 21 forks source link

群发送图片上传失败 #13

Closed jxygzzy closed 2 years ago

jxygzzy commented 3 years ago
ERRO[2021-09-24 21:39:40] failed to upload group image, dial tcp 180.109.192.140:14000: i/o timeout
connect error
github.com/Mrs4s/MiraiGo/client.(*QQClient).highwayUploadByBDH
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/highway.go:121
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:60
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581
upload failed
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:63
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581

私聊没问题,只会 failed to upload group image

lz1998 commented 3 years ago
ERRO[2021-09-24 21:39:40] failed to upload group image, dial tcp 180.109.192.140:14000: i/o timeout
connect error
github.com/Mrs4s/MiraiGo/client.(*QQClient).highwayUploadByBDH
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/highway.go:121
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:60
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581
upload failed
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:63
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581

私聊没问题,只会 failed to upload group image

是阿里云吗?稳定复现吗?

jxygzzy commented 3 years ago
ERRO[2021-09-24 21:39:40] failed to upload group image, dial tcp 180.109.192.140:14000: i/o timeout
connect error
github.com/Mrs4s/MiraiGo/client.(*QQClient).highwayUploadByBDH
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/highway.go:121
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:60
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581
upload failed
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:63
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581

私聊没问题,最后上传群图失败

是阿里云吗?稳定复现吗?

腾讯云、稳定复现

lz1998 commented 3 years ago

一样, 腾讯云 稳定复现

我这边暂时没办法复现,猜测可能是网络原因

ttlvip commented 3 years ago
ERRO[2021-09-24 21:39:40] failed to upload group image, dial tcp 180.109.192.140:14000: i/o timeout
connect error
github.com/Mrs4s/MiraiGo/client.(*QQClient).highwayUploadByBDH
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/highway.go:121
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:60
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581
upload failed
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
        github.com/Mrs4s/MiraiGo@v0.0.0-20210906051204-59288fc4dcf2/client/image.go:63
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
        github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
        runtime/asm_amd64.s:1581

私聊没问题,只会 failed to upload group image

可以考虑试试放行服务器上行的14000端口