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

[Bug?]: 发送图片时会产生一张url不正确的空图片 #548

Closed
4 tasks done
RikaCelery opened this issue Aug 23, 2024 · 1 comment · Fixed by #608
Closed
4 tasks done

[Bug?]: 发送图片时会产生一张url不正确的空图片 #548

RikaCelery opened this issue Aug 23, 2024 · 1 comment · Fixed by #608
Labels
bug? Maybe it's a bug

Comments

@RikaCelery
Copy link
Contributor

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

  • 我已经仔细阅读上述内容
  • 我已经使用 最新构建 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(其它疑问请考虑加入TG群询问或在discussions中提问)

Lagrange项目

OneBot

所使用/依赖的Lagrange项目对应的commit

1a8f171

运行环境

MacOS

运行架构

arm64

连接方式

正向 WebSocket

重现步骤

如题

期望的结果是什么?

一张包含正确url的图片

实际的结果是什么?

两张图片,第一张是旧的url格式并且404

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

No response

Trace 级别日志记录(可选)

Lagrange.OneBot Version: 0.0.3+1a8f1710ad3d205d56e22661c32449c7a2f4eefc

warn: Lagrange.OneBot.Utility.MusicSigner[0]
      MusicSignServer is not available, sign may be failed
info: Lagrange.OneBot.LagrangeAppBuilder[0]
      Indexing in the database...
info: Lagrange.OneBot.LagrangeAppBuilder[0]
      The first indexing of the old database will load the entire database into memory.
info: Lagrange.OneBot.LagrangeAppBuilder[0]
      If this is the first time creating an index for the old database, please restart the application
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /Users/u/lgr/Lagrange.Core/Lagrange.OneBot/bin/Debug/net8.0
info: Lagrange.OneBot.LagrangeApp[0]
      Lagrange.OneBot Implementation has started
info: Lagrange.OneBot.LagrangeApp[0]
      Protocol:  | 3.2.10-25765
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [SocketContext] [VERBOSE]: Server: http://39.156.126.229:8080/ Latency: 30
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [SocketContext] [VERBOSE]: Server: http://111.30.187.245:8080/ Latency: 27
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [SocketContext] [VERBOSE]: Server: http://111.30.187.201:8080/ Latency: 29
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [WtExchangeLogic] [INFORMATION]: Session has not expired, using session to login and register status
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [ServiceContext] [DEBUG]: Outgoing SSOFrame: trpc.qq_new_tech.status_svc.StatusService.Register
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [ServiceContext] [DEBUG]: Incoming SSOFrame: trpc.qq_new_tech.status_svc.StatusService.Register
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [WtExchangeLogic] [INFORMATION]: Register Status: register success
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:17] [WtExchangeLogic] [INFORMATION]: AutoReLogin Enabled, session would be refreshed in 15 days period
info: Lagrange.OneBot.LagrangeApp[0]
      Bot Online: ***
info: Lagrange.OneBot.Core.Network.LagrangeWebSvcCollection[1]
      [LagrangeWebSvcCollection]: Multi Connection has been configured
info: Lagrange.OneBot.Core.Network.Service.ForwardWSService[10]
      The server is started at http://127.0.0.1:6700/
info: Lagrange.OneBot.Core.Network.Service.ForwardWSService[11]
      Connect(72a874e5-6ea5-4e38-978e-866ca7222a93)
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"sub_type":"connect","meta_event_type":"lifecycle","time":1724451437,"self_id":***,"post_type":"meta_event"}
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"interval":5000,"status":{"app_initialized":true,"app_enabled":true,"app_good":true,"online":true,"good":true},"meta_event_type":"heartbeat","time":1724451437,"self_id":***,"post_type":"meta_event"}
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"interval":5000,"status":{"app_initialized":true,"app_enabled":true,"app_good":true,"online":true,"good":true},"meta_event_type":"heartbeat","time":1724451442,"self_id":***,"post_type":"meta_event"}
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:24] [ServiceContext] [DEBUG]: Incoming SSOFrame: trpc.msg.olpush.OlPushService.MsgPush
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:24] [ServiceContext] [DEBUG]: Outgoing SSOFrame: OidbSvcTrpcTcp.0xfe7_3
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:25] [ServiceContext] [DEBUG]: Incoming SSOFrame: OidbSvcTrpcTcp.0xfe7_3
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:25] [MessagingLogic] [VERBOSE]: [MessageChain(***)(***)] [Mention]: @rika(***) | [Text]:  #usage rss
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"message_type":"group","sub_type":"normal","message_id":291336708,"group_id":***,"user_id":***,"anonymous":null,"message":[{"type":"at","data":{"qq":"***","name":"@rika"}},{"type":"text","data":{"text":" #usage rss"}}],"raw_message":"[CQ:at,qq=***,name=@rika] #usage rss","font":0,"sender":{"user_id":***,"nickname":"","card":"","sex":"unknown","age":0,"area":"","level":"43","role":"owner","title":""},"time":1724451445,"self_id":***,"post_type":"message"}
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[12]
      Receive(72a874e5-6ea5-4e38-978e-866ca7222a93) {"action":"send_group_msg","params":{"group_id":***,"message":[{"type":"image","data":{"file":"base64:///9j/2wCEAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9PjsBCgsLDg0OHBAQHDsoIig7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O//AABEIA94E+AMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APYqKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoooo ...193998 bytes
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:25] [ServiceContext] [DEBUG]: Outgoing SSOFrame: OidbSvcTrpcTcp.0x11c4_100
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:25] [ServiceContext] [DEBUG]: Incoming SSOFrame: OidbSvcTrpcTcp.0x11c4_100
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:25] [ServiceContext] [DEBUG]: Outgoing SSOFrame: MessageSvc.PbSendMsg
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:27] [ServiceContext] [DEBUG]: Incoming SSOFrame: MessageSvc.PbSendMsg
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"status":"ok","retcode":0,"data":{"message_id":291382815},"echo":3}
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:27] [ServiceContext] [DEBUG]: Incoming SSOFrame: trpc.msg.olpush.OlPushService.MsgPush
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:27] [ServiceContext] [DEBUG]: Outgoing SSOFrame: OidbSvcTrpcTcp.0x11c4_200
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:27] [ServiceContext] [DEBUG]: Incoming SSOFrame: OidbSvcTrpcTcp.0x11c4_200
info: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:27] [MessagingLogic] [VERBOSE]: [MessageChain(***)(***)] [Image: 1272x990] [图片] d4a2bc2969fc7a0f16a6331c7678088d.jpg 146172 http://gchat.qpic.cn/gchatpic_new/***/***-1187407363-D4A2BC2969FC7A0F16A6331C7678088D/0?term=255&is_origin=1 | [Image: 1272x990] [图片] d4a2bc2969fc7a0f16a6331c7678088d.jpg 146172 https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgoxNTgxOTM4MDE0EhRT6YQn3zAxh2E1c94SwExMbAqpPRj89Qgg_woo5afnnpKMiANQgL2jAQ&rkey=CAISKKSBekjVG1fMbogrh4KPqfGB2D9u8hX7D147Y1vmd2VkcpzGw-lQw3Y
trce: Lagrange.Core.BotContext[0]
      [2024-08-24 06:17:27] [ServiceContext] [DEBUG]: Outgoing SSOFrame: Heartbeat.Alive
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"interval":5000,"status":{"app_initialized":true,"app_enabled":true,"app_good":true,"online":true,"good":true},"meta_event_type":"heartbeat","time":1724451447,"self_id":***,"post_type":"meta_event"}
trce: Lagrange.OneBot.Core.Network.Service.ForwardWSService[13]
      Send(72a874e5-6ea5-4e38-978e-866ca7222a93) {"interval":5000,"status":{"app_initialized":true,"app_enabled":true,"app_good":true,"online":true,"good":true},"meta_event_type":"heartbeat","time":1724451452,"self_id":***,"post_type":"meta_event"}

=============================================================================
bot框架的输出

INFO[1591] [bot] 收到群(***)消息 *** : [CQ:at,qq=***,name=@***] #usage rss 
DEBU[1591] [ws] 向服务器发送请求: &{send_group_msg map[group_id:*** message:[CQ:image,file=base64:///9j/2wCEAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIxsf****KKAP//Z]] 3} 
DEBU[1593] [ws] 接收到API调用返回: {"status":"ok","retcode":0,"data":{"message_id":291382815},"echo":3} 
INFO[1593] [api] 发送群消息(***): [CQ:image,file=d4a2bc2969fc7a0f16a6331c7678088d.image] (id=291382815) 
WARN[1664] [ws] Websocket服务器连接断开...

补充说明(可选)

NTQQ客户端是看不到url错误的消息的,但是可以被lgr或其他lgr接收到。
在合并转发之后会变成一条正确的图片
好像是因为有个CustomFace
image

@yokinanya
Copy link

yokinanya commented Oct 1, 2024

这问题似乎没解决,用的是 https://github.com/LagrangeDev/Lagrange.Core/actions/runs/11126716951 的版本,用最新的release也有这问题,用 https://github.com/LagrangeDev/Lagrange.Core/actions/runs/11095419261 也一样

info: Lagrange.Core.BotContext[0]
      [2024-10-01 22:27:54] [MessagingLogic] [VERBOSE]: [MessageChain(466432629)(3147892066)] [Image: 1024x1689] [图片] 4a252f93b7668c8cbaed151414fc5454.jpg 188542 http://gchat.qpic.cn/gchatpic_new/3147892066/3956432629-1772167427-4A252F93B7668C8CBAED151414FC5454/0?term=255&is_origin=1 | [Image: 1024x1689] [图片] 4a252f93b7668c8cbaed151414fc5454.jpg 188542 https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=CgozMTQ3ODkyMDY2EhRMyvdrIiS0s5qB60JG9uRVRRbkRhj-wAsg_woom_CHg7LtiAMyBHByb2RQgL2jAQ&rkey=CAMSKCnRkWXeilTOm2Ad7h640ZQ39ceugNW1d5uSrtVH5UO-4WjxJvUXIgk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Maybe it's a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants