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

MC服务器内信息跟成就能正常发送到群内,群内信息无法发送到MC服务器内。 #32

Closed
Tamamoimoto opened this issue Jul 24, 2022 · 1 comment

Comments

@Tamamoimoto
Copy link

mc服务器版本:1.18.2(This server is running Arclight version arclight-1.18.2-1.0.5-00ca124c (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT))
机器人框架为mirai-2.12

[18:08:54 INFO] [Console]: 1
[18:09:25 ERROR] [c.e.m.b.u.w.d.Draft_6455]: Runtime exception during onWebsocketMessage
java.lang.UnsupportedOperationException: JsonNull
at com.google.gson.JsonElement.getAsString(JsonElement.java:179) ~[gson-2.8.9.jar%2321!/:?]
at cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:60) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:56) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessage(MiraiBot.java:175) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessageList(MiraiBot.java:129) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.bot.MiraiBot.(MiraiBot.java:106) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.service.WebSocketService$1.onMessage(WebSocketService.java:45) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:642) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:932) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrame(Draft_6455.java:856) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:375) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decode(WebSocketImpl.java:207) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.run(WebSocketClient.java:522) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at java.lang.Thread.run(Thread.java:833) [?:?]
[18:09:25 INFO] [c.e.m.b.BotApi]: [] 启用框架: mirai失败
[18:09:25 WARN] [c.e.m.b.BotApi]: [群服互联] 出现错误!
[18:09:25 ERROR] [STDERR]: java.lang.UnsupportedOperationException: JsonNull
[18:09:25 ERROR] [STDERR]: at MC-BOOTSTRAP/com.google.gson@2.8.9/com.google.gson.JsonElement.getAsString(JsonElement.java:179)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:60)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:56)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessage(MiraiBot.java:175)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessageList(MiraiBot.java:129)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.bot.MiraiBot.(MiraiBot.java:106)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.service.WebSocketService$1.onMessage(WebSocketService.java:45)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:642)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:932)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrame(Draft_6455.java:856)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:375)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decode(WebSocketImpl.java:207)
[18:09:25 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.run(WebSocketClient.java:522)
[18:09:25 ERROR] [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)
[18:09:55 INFO]: Tamamoimoto has made the advancement [Stone Age]
[18:10:02 ERROR] [c.e.m.b.u.w.d.Draft_6455]: Runtime exception during onWebsocketMessage
java.lang.UnsupportedOperationException: JsonNull
at com.google.gson.JsonElement.getAsString(JsonElement.java:179) ~[gson-2.8.9.jar%2321!/:?]
at cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:60) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:56) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessage(MiraiBot.java:175) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessageList(MiraiBot.java:129) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.bot.MiraiBot.(MiraiBot.java:106) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.core.service.WebSocketService$1.onMessage(WebSocketService.java:45) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:642) ~[%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:932) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrame(Draft_6455.java:856) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:375) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decode(WebSocketImpl.java:207) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.run(WebSocketClient.java:522) [%5B连接%5DBot-Connect-forge-1.18.2-1.8.2.jar%2369!/:1.18.2-1.8.2]
at java.lang.Thread.run(Thread.java:833) [?:?]
[18:10:02 INFO] [c.e.m.b.BotApi]: [
] 启用框架: mirai失败
[18:10:02 WARN] [c.e.m.b.BotApi]: [群服互联] 出现错误!
[18:10:02 ERROR] [STDERR]: java.lang.UnsupportedOperationException: JsonNull
[18:10:02 ERROR] [STDERR]: at MC-BOOTSTRAP/com.google.gson@2.8.9/com.google.gson.JsonElement.getAsString(JsonElement.java:179)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:60)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.JsonsObject.optString(JsonsObject.java:56)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessage(MiraiBot.java:175)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.bot.MiraiBot.getMessageList(MiraiBot.java:129)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.bot.MiraiBot.(MiraiBot.java:106)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.core.service.WebSocketService$1.onMessage(WebSocketService.java:45)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:642)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:932)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.drafts.Draft_6455.processFrame(Draft_6455.java:856)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:375)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.WebSocketImpl.decode(WebSocketImpl.java:207)
[18:10:02 ERROR] [STDERR]: at TRANSFORMER/botapi@1.18.2-1.8.2/cn.evolvefield.mods.botapi.util.websocket.client.WebSocketClient.run(WebSocketClient.java:522)
[18:10:02 ERROR] [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)

cnlimiter added a commit that referenced this issue Sep 11, 2022
@cnlimiter
Copy link
Collaborator

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants