Nova-Committee / McBot

A mod allowed you to connect minecraft and QQ
Other
134 stars 18 forks source link

一些奇怪的报错 #16

Closed wangwang-code closed 2 years ago

wangwang-code commented 2 years ago

Bot-Connect-fabric-1.18.2-1.6.0 go-cqhttp v1.0.0-rc1 貌似没有正常发送消息

[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]: cn.evolvefield.mods.botapi.util.json.JSONException: JSONObject["name"] not found.
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at cn.evolvefield.mods.botapi.util.json.JSONObject.get(JSONObject.java:541)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at cn.evolvefield.mods.botapi.util.json.JSONObject.getString(JSONObject.java:828)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at cn.evolvefield.mods.botapi.core.bot.CQHttpBot.<init>(CQHttpBot.java:153)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at cn.evolvefield.mods.botapi.core.network.WebSocket.WebSocketClientHandler.channelRead0(WebSocketClientHandler.java:55)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[15:19:53] [nioEventLoopGroup-2-1/INFO]: [STDERR]:  at java.base/java.lang.Thread.run(Thread.java:833)
wangwang-code commented 2 years ago

服务器启动并连接过10多分钟就会报,另外1.18.2的jar大小比1.18.1的大了好多

MikhailTapio commented 2 years ago

服务器启动并连接过10多分钟就会报,另外1.18.2的jar大小比1.18.1的大了好多

体积增大是正常的。

cnlimiter commented 2 years ago

服务器启动并连接过10多分钟就会报,另外1.18.2的jar大小比1.18.1的大了好多

因为1.18.2的fabric版本将sqlite3打包进去了,这是给群服绑定使用的,当然也可以不用sqlite储存数据,模组提供了json储存绑定数据,另外,想直到白名单功能有问题么

cnlimiter commented 2 years ago

服务器启动并连接过10多分钟就会报,另外1.18.2的jar大小比1.18.1的大了好多

马上修复,发到mcmod