TimeRainStarSky / Yunzai

Yunzai 应用端,支持多账号,支持协议端:go-cqhttp、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord
GNU General Public License v3.0
339 stars 30 forks source link

接入LLOneBot后发图异常 #120

Closed QAQQL closed 1 month ago

QAQQL commented 1 month ago

问题

#帮助 没有返回,后台log显示如下 图片

OneBotv11(QQ) LLOneBot v3.28.0 LLOneBot配置如下 图片

13579为另一款bot,发送图片没有问题

环境

自建docker镜像,编译自项目 TRSS-Yunzai-Bot-Docker

报错代码


2024-08-07 21:14:08 [21:14:08.054][ERRO][unhandledRejection] Error
2024-08-07 21:14:08     at OneBotv11Adapter.sendApi (file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:21:19)
2024-08-07 21:14:08     at Object.sendApi (file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:709:41)
2024-08-07 21:14:08     at file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:103:16
2024-08-07 21:14:08     at OneBotv11Adapter.sendMsg (file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:91:22)
2024-08-07 21:14:08     at async e.reply (file:///app/TRSS-Yunzai/lib/plugins/loader.js:480:15)
2024-08-07 21:14:08     at async Runtime.render (file:///app/TRSS-Yunzai/lib/plugins/runtime.js:230:15)
2024-08-07 21:14:08     at async cls.render (file:///app/TRSS-Yunzai/plugins/miao-plugin/apps/help/Help.js:61:12)
2024-08-07 21:14:08     at async cls.<computed> [as help] (file:///app/TRSS-Yunzai/plugins/miao-plugin/components/App.js:96:18)
2024-08-07 21:14:08     at async PluginsLoader.deal (file:///app/TRSS-Yunzai/lib/plugins/loader.js:264:41) {
2024-08-07 21:14:08   [stack]: 'Error\n' +
2024-08-07 21:14:08     '    at OneBotv11Adapter.sendApi (file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:21:19)\n' +
2024-08-07 21:14:08     '    at Object.sendApi (file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:709:41)\n' +
2024-08-07 21:14:08     '    at file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:103:16\n' +
2024-08-07 21:14:08     '    at OneBotv11Adapter.sendMsg (file:///app/TRSS-Yunzai/plugins/adapter/OneBotv11.js:91:22)\n' +
2024-08-07 21:14:08     '    at async e.reply (file:///app/TRSS-Yunzai/lib/plugins/loader.js:480:15)\n' +
2024-08-07 21:14:08     '    at async Runtime.render (file:///app/TRSS-Yunzai/lib/plugins/runtime.js:230:15)\n' +
2024-08-07 21:14:08     '    at async cls.render (file:///app/TRSS-Yunzai/plugins/miao-plugin/apps/help/Help.js:61:12)\n' +
2024-08-07 21:14:08     '    at async cls.<computed> [as help] (file:///app/TRSS-Yunzai/plugins/miao-plugin/components/App.js:96:18)\n' +
2024-08-07 21:14:08     '    at async PluginsLoader.deal (file:///app/TRSS-Yunzai/lib/plugins/loader.js:264:41)',
2024-08-07 21:14:08   action: 'send_msg',
2024-08-07 21:14:08   params: {
2024-08-07 21:14:08     user_id: xxxxxxx,
2024-08-07 21:14:08     message: [
2024-08-07 21:14:08       {
2024-08-07 21:14:08         type: 'image',
2024-08-07 21:14:08         data: {
2024-08-07 21:14:08           type: undefined,
2024-08-07 21:14:08           file: '{"0":255,"1":216,"2":255,"3":224,"4":0,"5":16,"6":74,"7":70,"8":73,"9":70,"10":0,"11":1,"12":1,"13":0,"14":0,"15":1,"16":0,"17":1,"18":0,"19":0,"20":255,"21":226,"22":1,"23":216,"24":73,"25":67,"26":67,"27":95,"28":80,"29":82,"30":79,"31":70,"32":73,"33":76,"34":69,"35":0,"36":1,"37":1,"38":0,"39":0,"40":1,"41":200,"42":0,"43":0,"44":0,"45":0,"46":4,"47":48,"48":0,"49":0,"50":109,"51":110,"52":116,"53":114,"54":82,"55":71,"56":66,"57":32,"58":88,"59":89,"60":90,"61":32,"62":7,"63":224,"64":0,"65":1,"66":0,"67":1,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":97,"75":99,"76":115,"77":112,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":1,"106":0,"107":0,"108":246,"109":214,"110":0,"111":1,"112":0,"113":0,"114":0,"115":0,"116":211,"117":45,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130"'... 4105880 more characters,
2024-08-07 21:14:08           name: undefined
2024-08-07 21:14:08         }
2024-08-07 21:14:08       },
2024-08-07 21:14:08       [length]: 1
2024-08-07 21:14:08     ]
2024-08-07 21:14:08   },
2024-08-07 21:14:08   echo: '01J4PFKCA3XSHTWZY7FVEJDYEB',
2024-08-07 21:14:08   error: {
2024-08-07 21:14:08     status: 'failed',
2024-08-07 21:14:08     retcode: 1200,
2024-08-07 21:14:08     data: null,
2024-08-07 21:14:08     message: 'uri {"0":255,"1":216,"2":255,"3":224,"4":0,"5":16,"6":74,"7":70,"8":73,"9":70,"10":0,"11":1,"12":1,"13":0,"14":0,"15":1,"16":0,"17":1,"18":0,"19":0,"20":255,"21":226,"22":1,"23":216,"24":73,"25":67,"26":67,"27":95,"28":80,"29":82,"30":79,"31":70,"32":73,"33":76,"34":69,"35":0,"36":1,"37":1,"38":0,"39":0,"40":1,"41":200,"42":0,"43":0,"44":0,"45":0,"46":4,"47":48,"48":0,"49":0,"50":109,"51":110,"52":116,"53":114,"54":82,"55":71,"56":66,"57":32,"58":88,"59":89,"60":90,"61":32,"62":7,"63":224,"64":0,"65":1,"66":0,"67":1,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":97,"75":99,"76":115,"77":112,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":1,"106":0,"107":0,"108":246,"109":214,"110":0,"111":1,"112":0,"113":0,"114":0,"115":0,"116":211,"117":45,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"'... 8212798 more characters,
2024-08-07 21:14:08     wording: 'uri {"0":255,"1":216,"2":255,"3":224,"4":0,"5":16,"6":74,"7":70,"8":73,"9":70,"10":0,"11":1,"12":1,"13":0,"14":0,"15":1,"16":0,"17":1,"18":0,"19":0,"20":255,"21":226,"22":1,"23":216,"24":73,"25":67,"26":67,"27":95,"28":80,"29":82,"30":79,"31":70,"32":73,"33":76,"34":69,"35":0,"36":1,"37":1,"38":0,"39":0,"40":1,"41":200,"42":0,"43":0,"44":0,"45":0,"46":4,"47":48,"48":0,"49":0,"50":109,"51":110,"52":116,"53":114,"54":82,"55":71,"56":66,"57":32,"58":88,"59":89,"60":90,"61":32,"62":7,"63":224,"64":0,"65":1,"66":0,"67":1,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":97,"75":99,"76":115,"77":112,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":1,"106":0,"107":0,"108":246,"109":214,"110":0,"111":1,"112":0,"113":0,"114":0,"115":0,"116":211,"117":45,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"'... 8212798 more characters,
2024-08-07 21:14:08     echo: '01J4PFKCA3XSHTWZY7FVEJDYEB',
2024-08-07 21:14:08     raw: '{"status":"failed","retcode":1200,"data":null,"message":"uri {\\"0\\":255,\\"1\\":216,\\"2\\":255,\\"3\\":224,\\"4\\":0,\\"5\\":16,\\"6\\":74,\\"7\\":70,\\"8\\":73,\\"9\\":70,\\"10\\":0,\\"11\\":1,\\"12\\":1,\\"13\\":0,\\"14\\":0,\\"15\\":1,\\"16\\":0,\\"17\\":1,\\"18\\":0,\\"19\\":0,\\"20\\":255,\\"21\\":226,\\"22\\":1,\\"23\\":216,\\"24\\":73,\\"25\\":67,\\"26\\":67,\\"27\\":95,\\"28\\":80,\\"29\\":82,\\"30\\":79,\\"31\\":70,\\"32\\":73,\\"33\\":76,\\"34\\":69,\\"35\\":0,\\"36\\":1,\\"37\\":1,\\"38\\":0,\\"39\\":0,\\"40\\":1,\\"41\\":200,\\"42\\":0,\\"43\\":0,\\"44\\":0,\\"45\\":0,\\"46\\":4,\\"47\\":48,\\"48\\":0,\\"49\\":0,\\"50\\":109,\\"51\\":110,\\"52\\":116,\\"53\\":114,\\"54\\":82,\\"55\\":71,\\"56\\":66,\\"57\\":32,\\"58\\":88,\\"59\\":89,\\"60\\":90,\\"61\\":32,\\"62\\":7,\\"63\\":224,\\"64\\":0,\\"65\\":1,\\"66\\":0,\\"67\\":1,\\"68\\":0,\\"69\\":0,\\"70\\":0,\\"71\\":0,\\"72\\":0,\\"73\\":0,\\"74\\":97,\\"75\\":99,\\"76\\":115,\\"77\\":112,\\"78\\":0,\\"79\\":0,\\"80\\":0,\\"81\\":0,\\"82\\":0,\\"83\\":0,\\"84\\":0,\\"85\\":0,\\"86\\":0,\\"87\\":0,\\"88\\":0,\\"89\\":0,\\"90\\":0,\\"91\\":0,\\"92\\":0,\\"93\\":0,\\"94\\":0,\\"95\\":0,\\"96\\":0,\\"97\\":0,\\"98\\":0,'... 19110760 more characters
2024-08-07 21:14:08   }
2024-08-07 21:14:08 }
Dreamry2C commented 1 month ago

同,我是手动安装TRSS-Yunzai-Bot和Lagrange.Core。 应该是一样的问题。文字bot能发,但是图片这些发不了。

image image image

下面是,Lagrange.Core的显示 好像是说链接太长了

image

yunzai log:

​``` [06:44:32.898][MARK][So numb(1****8)][#喵喵帮助][喵喵:喵喵帮助(help)][完成5.026秒] [06:44:33.286][ERRO][unhandledRejection] Error at OneBotv11Adapter.sendApi (file:///root/Yunzai/plugins/adapter/OneBotv11.js:21:19) at Object.sendApi (file:///root/Yunzai/plugins/adapter/OneBotv11.js:709:41) at file:///root/Yunzai/plugins/adapter/OneBotv11.js:103:16 at OneBotv11Adapter.sendMsg (file:///root/Yunzai/plugins/adapter/OneBotv11.js:91:22) at async e.reply (file:///root/Yunzai/lib/plugins/loader.js:480:15) at async Runtime.render (file:///root/Yunzai/lib/plugins/runtime.js:230:15) at async cls.render (file:///root/Yunzai/plugins/miao-plugin/apps/help/Help.js:61:12) at async cls. [as help] (file:///root/Yunzai/plugins/miao-plugin/components/App.js:96:18) at async PluginsLoader.deal (file:///root/Yunzai/lib/plugins/loader.js:264:41) { [stack]: [Getter/Setter: 'Error\n' + ' at OneBotv11Adapter.sendApi (file:///root/Yunzai/plugins/adapter/OneBotv11.js:21:19)\n' + ' at Object.sendApi (file:///root/Yunzai/plugins/adapter/OneBotv11.js:709:41)\n' + ' at file:///root/Yunzai/plugins/adapter/OneBotv11.js:103:16\n' + ' at OneBotv11Adapter.sendMsg (file:///root/Yunzai/plugins/adapter/OneBotv11.js:91:22)\n' + ' at async e.reply (file:///root/Yunzai/lib/plugins/loader.js:480:15)\n' + ' at async Runtime.render (file:///root/Yunzai/lib/plugins/runtime.js:230:15)\n' + ' at async cls.render (file:///root/Yunzai/plugins/miao-plugin/apps/help/Help.js:61:12)\n' + ' at async cls. [as help] (file:///root/Yunzai/plugins/miao-plugin/components/App.js:96:18)\n' + ' at async PluginsLoader.deal (file:///root/Yunzai/lib/plugins/loader.js:264:41)'], action: 'send_msg', params: { user_id: 1****8, message: [ { type: 'image', data: { type: undefined, file: '{"0":255,"1":216,"2":255,"3":224,"4":0,"5":16,"6":74,"7":70,"8":73,"9":70,"10":0,"11":1,"12":1,"13":0,"14":0,"15":1,"16":0,"17":1,"18":0,"19":0,"20":255,"21":226,"22":1,"23":216,"24":73,"25":67,"26":67,"27":95,"28":80,"29":82,"30":79,"31":70,"32":73,"33":76,"34":69,"35":0,"36":1,"37":1,"38":0,"39":0,"40":1,"41":200,"42":0,"43":0,"44":0,"45":0,"46":4,"47":48,"48":0,"49":0,"50":109,"51":110,"52":116,"53":114,"54":82,"55":71,"56":66,"57":32,"58":88,"59":89,"60":90,"61":32,"62":7,"63":224,"64":0,"65":1,"66":0,"67":1,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":97,"75":99,"76":115,"77":112,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":1,"106":0,"107":0,"108":246,"109":214,"110":0,"111":1,"112":0,"113":0,"114":0,"115":0,"116":211,"117":45,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130"'... 4105880 more characters, name: undefined } },

]

}, echo: '01J4QG7VZ92HR2VX6YZZ2NCM24', error: { status: 'failed', retcode: 200, data: null, echo: '01J4QG7VZ92HR2VX6YZZ2NCM24', raw: '{"status":"failed","retcode":200,"data":null,"echo":"01J4QG7VZ92HR2VX6YZZ2NCM24"}' } }​```

Lagrange.Core log:

``info: Lagrange.OneBot.LagrangeApp[0] Bot Online: 16*********7 info: Lagrange.OneBot.Core.Network.LagrangeWebSvcCollection[1] [LagrangeWebSvcCollection]: Multi Connection has been configured info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 warn: Lagrange.Core.BotContext[0] [2024-08-08 06:43:30] [ServiceContext] [WARNING]: Unsupported SSOFrame Received: ConfigPushSvc.PushReq info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002] [ReverseWSService] Reconnecting 7edb4c21-c458-4325-a946-2c4fe36c6b79 at interval of 5000 warn: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1001] [ReverseWSService] Disconnect(7edb4c21-c458-4325-a946-2c4fe36c6b79) System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake. at System.Net.WebSockets.ManagedWebSocket.ThrowEOFUnexpected() at System.Net.WebSockets.ManagedWebSocket.EnsureBufferContainsAsync(Int32 minimumRequiredBytes, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TResult](Memory1 payloadBuffer, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at Lagrange.OneBot.Core.Network.Service.ReverseWSService.ReceiveLoop(ClientWebSocket ws, CancellationToken token) at Lagrange.OneBot.Core.Network.Service.ReverseWSService.ExecuteAsync(CancellationToken stoppingToken) info: Lagrange.Core.BotContext[0]

warn: Lagrange.OneBot.Core.Operation.OperationService[0] Unexpected error encountered while handling message. System.UriFormatException: Invalid URI: The Uri string is too long. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions) at System.Uri..ctor(String uriString) at Lagrange.OneBot.Message.Entity.CommonResolver.ResolveStream(String url) at Lagrange.OneBot.Message.Entity.ImageSegment.Build(MessageBuilder builder, SegmentBase segment) at Lagrange.OneBot.Core.Operation.Message.MessageCommon.BuildMessages(MessageBuilder builder, List`1 segments) at Lagrange.OneBot.Core.Operation.Message.MessageCommon.ParseChain(OneBotMessage message) at Lagrange.OneBot.Core.Operation.Message.SendMessageOperation.HandleOperation(BotContext context, JsonNode payload) at Lagrange.OneBot.Core.Operation.OperationService.HandleOperation(MsgRecvEventArgs e) Unknown Event0x210 message type: 87: 0a660a4008dbcff099061218755f6f6d5a587a4d77544c2d66554d52754f504f7579764128dbcff099063218755f6f6d5a587a4d77544c2d66554d52754f504f75797641121c089004105718572083f9a036308af2cfb5066083f9a0b680808080021a040a001200

TimeRainStarSky commented 1 month ago

已修复

QAQQL commented 1 month ago

实测已修复,感谢