wechaty / java-wechaty-getting-started

Java Wechaty Starter Project Template that Works Out-of-the-Box
https://gitpod.io/#https://github.com/wechaty/java-wechaty-getting-started
Apache License 2.0
46 stars 41 forks source link

启动的时候io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason #34

Open George4142 opened 2 years ago

George4142 commented 2 years ago

io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:244) ~[grpc-stub-1.29.0.jar:1.29.0] at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:225) ~[grpc-stub-1.29.0.jar:1.29.0] at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:142) ~[grpc-stub-1.29.0.jar:1.29.0] at io.github.wechaty.grpc.PuppetGrpc$PuppetBlockingStub.start(PuppetGrpc.java:2744) ~[grpc-0.16.1.jar:?] at io.github.wechaty.grpc.GrpcPuppet.start(GrpcPuppet.kt:78) [wechaty-puppet-hostie-0.1.5-SNAPSHOT.jar:?] at io.github.wechaty.Wechaty.start(Wechaty.kt:52) [wechaty-0.1.5-SNAPSHOT.jar:?] at io.github.wechaty.DingDongBot.main(DingDongBot.java:49) [classes/:?]

George4142 commented 2 years ago

docker 换成了wechaty:0.56的版本就可以了。目测应该是docker和sdk的grpc版本不符

huan commented 2 years ago

You are running into

Solution

https://wechaty.js.org/docs/puppet-services/diy/#6-config-tlsssl-for-wechaty-puppet-service-optional

Nanmen commented 2 years ago

docker 换成了wechaty:0.56的版本就可以了。目测应该是docker和sdk的grpc版本不符

TLS要设置成true么?能麻烦给个联系方式,我这边用0.56还是起不起来

George4142 commented 2 years ago

You are running into

Solution

https://wechaty.js.org/docs/puppet-services/diy/#6-config-tlsssl-for-wechaty-puppet-service-optional

谢谢~

huan commented 2 years ago

@George4142 You are welcome!

George4142 commented 2 years ago

还有个新问题:发送文字是乱码 测试测试1�?�?�?�?�?UTF-8

测试测试1�?�?�?�?�?GBK

娴�璇�娴�璇�1涓?涓?涓?涓?涓?GB2312

测试测试1ä¸?ä¸?ä¸?ä¸?ä¸?ISO-8859-1

诨꾕诨꾕㇤렿㿤렿㿤렿Unicode

coloforlia commented 2 years ago

@George4142 You are welcome!

why i cannot run this demo with wechaty/wechaty:1.13