已解决 bot与签名服务对接时报错Invalid Status code=403
-
很长时间没出过问题的bot无法登陆了,在把fix-protocol-version升级到1.13.0,并校对了部署签名服务的docker容器的时区后启动成功,但是不久又无法启动了,以下是启动bot时的报错(两次启动失败的报错相同):
Caused by: java.io.IOException: Invalid Status code=403 text=Forbidden at org.asynchttpclient.netty.handler.WebSocketHandler.abort(WebSocketHandler.java:98) at org.asynchttpclient.netty.handler.WebSocketHandler.handleRead(WebSocketHandler.java:122) at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:75) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:333) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:454) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833)
签名服务部署在另一个服务器上(因为bot在windows端服务器上,docker安装比较麻烦,所以把kiliokuara/vivo50部署在了另一个服务器上),日志如下:
2024-04-04 15:25:35 [INFO ] [vert.x-eventloop-thread-0] RpcServerBootstrap - [ROUTER] receiving get about page 2024-04-04 15:25:37 [INFO ] [vert.x-eventloop-thread-0] RpcServerBootstrap - [ROUTER] receiving get handshake config request 2024-04-04 15:25:37 [INFO ] [vert.x-eventloop-thread-0] RpcServerBootstrap - [ROUTER] receiving do handshake request 2024-04-04 15:25:37 [INFO ] [vert.x-eventloop-thread-0] RpcServerBootstrap - [ROUTER] accepted do handshake request. 2024-04-04 15:25:37 [INFO ] [vert.x-eventloop-thread-0] RpcServerBootstrap - session of bot ##数据擦除## is created: 445de260-83d0-4476-82a2-16c6aa9fbe38.b1ql//kaAMjlbwdmWwflgCWxFMUX5pxnWsAMDJ17E1rni7Sw+C08xgb+2Ilk4D5e5pppZwItfQe3qtzLiRa+2b0aak37YQa47q4aWyCuX2GwsSLrv3ZvlxzuGJPjZseH0wMQbTv8TslONrjp4hTOo+4Q4MTAl0uMyJVbn0wqt5OlsAx4TCMDifxoUFQ3gvJCtqb3VlwgDtU/qc8U7kb0rYFl29OceaYclBkYFWeXBW5gZi6+edcJU/67oYYlAnMVdmCUpIihHIeO3epWIG/1wYHfp53jehcMJNJloqNK8sGMeUMH9LSoGdaeP4r5OODpMgythMZ/V3txPOKtcueSgNwPOmQfncnWARDB7DwfpK/31YeRZFRO8cld/rH8hzbr/NrLiaTokD//6p/WSm2/ni0mN7m1Y+TigIxj/NwZDVSOa+yFFRp/Y7bErb4R8554MaJe+YgmRGZ7G5yDBU2vuendJl6+m4w25FCUcwla8FhZGzI/DtvTWzY2Ryps/70Joz6xfKp/TezOuSk6uXsn+HDS9h0WEk0nlVOqPtig223/kMT+I3iJCTeLOKDWM+aDhrAPZO3IpL7i8Zv5ZOH9RfjkHsWn/0w6pkJPOn8ylN79N1jJO+y3IJwusDuzPuso1cgEm6k3qK4lJjXZqPJ7xsj1+YIbDqc1+GTOVCSBdJo= 2024-04-04 15:25:37 [INFO ] [vert.x-eventloop-thread-0] RpcServerBootstrap - [ROUTER] client request to check session state 445de260-83d0-4476-82a2-16c6aa9fbe38.b1ql//kaAMjlbwdmWwflgCWxFMUX5pxnWsAMDJ17E1rni7Sw+C08xgb+2Ilk4D5e5pppZwItfQe3qtzLiRa+2b0aak37YQa47q4aWyCuX2GwsSLrv3ZvlxzuGJPjZseH0wMQbTv8TslONrjp4hTOo+4Q4MTAl0uMyJVbn0wqt5OlsAx4TCMDifxoUFQ3gvJCtqb3VlwgDtU/qc8U7kb0rYFl29OceaYclBkYFWeXBW5gZi6+edcJU/67oYYlAnMVdmCUpIihHIeO3epWIG/1wYHfp53jehcMJNJloqNK8sGMeUMH9LSoGdaeP4r5OODpMgythMZ/V3txPOKtcueSgNwPOmQfncnWARDB7DwfpK/31YeRZFRO8cld/rH8hzbr/NrLiaTokD//6p/WSm2/ni0mN7m1Y+TigIxj/NwZDVSOa+yFFRp/Y7bErb4R8554MaJe+YgmRGZ7G5yDBU2vuendJl6+m4w25FCUcwla8FhZGzI/DtvTWzY2Ryps/70Joz6xfKp/TezOuSk6uXsn+HDS9h0WEk0nlVOqPtig223/kMT+I3iJCTeLOKDWM+aDhrAPZO3IpL7i8Zv5ZOH9RfjkHsWn/0w6pkJPOn8ylN79N1jJO+y3IJwusDuzPuso1cgEm6k3qK4lJjXZqPJ7xsj1+YIbDqc1+GTOVCSBdJo=
-
应该是网络通信的故障,我把签名服务编译成功后部署在本地就好了。
-
-
-
@遗世紫丁香 请问在哪里弄的签名服务呀