-
Notifications
You must be signed in to change notification settings - Fork 7
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]群里一发消息就报错 #8
Comments
同样的问题,服消息能同步到群,但是群消息无法被amazingbot正常解析,使用的QQ框架为Lagrange.Core 当在群内发送test时,收到的消息的DEBUG为 看起来只是需要修一下解析,但是我不懂java,希望作者大大尽快修复 |
同样的问题,目测是amazingbot4只做了string消息格式的支持,没有做array的。而我用的机器人框架只支持array格式的消息上报。 |
我修复了这个问题,并且提了个PR #9 |
感谢🙏 |
你发的这个版本,在q群如果有人发表情或者图片什么的,后台就会报错... |
我现在暂时没用这个插件,你能发一下你的日志吗,我看看是什么问题 |
|
你说纯表情和纯图片消息吗,那我觉得不影响使用,可以忽略 |
不是,文字带表情的情况下也会,而且服务器里看不到 |
你尝试过在高版本使用这个插件吗?关服的时候提示zip什么的报错 |
我运行的版本是 1.20.6, 关闭的时候一切正常 |
[20:34:32 WARN]: me.albert.amazingbot.shaded.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY at path $.message
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:225)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.Gson.fromJson(Gson.java:991)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.Gson.fromJson(Gson.java:1062)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.Gson.fromJson(Gson.java:1034)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.bot.BotEventParser.parse(BotEventParser.java:48)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.bot.BotEventParser.parseMessageEvent(BotEventParser.java:110)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.bot.BotEventParser.parseEvent(BotEventParser.java:38)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.bot.BotClient.processMessageRec(BotClient.java:131)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.bot.BotClient.lambda$onMessage$0(BotClient.java:108)
[20:34:32 WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:93)
[20:34:32 WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[20:34:32 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[20:34:32 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[20:34:32 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[20:34:32 WARN]: at java.base/java.lang.Thread.run(Thread.java:840)
[20:34:32 WARN]: Caused by: java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY at path $.message
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.internal.bind.JsonTreeReader.nextString(JsonTreeReader.java:181)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:393)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:381)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:130)
[20:34:32 WARN]: at AmazingBot-4.0.10.jar//me.albert.amazingbot.shaded.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:221)
[20:34:32 WARN]: ... 14 more
在群里发什么信息都这样,压根没法转发过去
The text was updated successfully, but these errors were encountered: