You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: io.grpc.StatusRuntimeException: INTERNAL: protocol is empty
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:244)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:225)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:142)
at io.github.wechaty.grpc.PuppetGrpc$PuppetBlockingStub.messageSendFile(PuppetGrpc.java:2940)
at io.github.wechaty.grpc.GrpcPuppet$messageSendFile$1.get(GrpcPuppet.kt:593)
at io.github.wechaty.grpc.GrpcPuppet$messageSendFile$1.get(GrpcPuppet.kt:29)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
The cause is that the name and value of the filebox.fromUrl() are setup in wrong sequence. so the puppet cannot locate the http protocal from URL value.
Message signature is fromUrl(url: String, name: String?, headers: OutgoingHttpHeaders? = null)
and the caller is calling in a wrong way:
Scenario and simulation steps:
Trying to receive an image and send to another contact:
Code
` Contact from = message.from();
Room room = message.room();
}`
Error in the log:
The output from above code is below:
The cause is that the name and value of the filebox.fromUrl() are setup in wrong sequence. so the puppet cannot locate the http protocal from URL value.
Message signature is
fromUrl(url: String, name: String?, headers: OutgoingHttpHeaders? = null)
and the caller is calling in a wrong way:
The file and line number causes the bug:
FileBox.kt
203
FileBoxType.Url.code -> {
fileBox = fromUrl(
jsonNode.findValue("name").asText(),
jsonNode.findValue("remoteUrl").asText()
)
}
242
@JvmStatic
fun fromUrl(url: String, name: String?, headers: OutgoingHttpHeaders? = null): FileBox {
The text was updated successfully, but these errors were encountered: