java-wechaty icon indicating copy to clipboard operation
java-wechaty copied to clipboard

INTERNAL: no cache manager when using method io.github.wechaty.user.manager.ContactManager.findAll

Open Charles-Wu-Chen opened this issue 3 years ago • 0 comments

Caused by: io.grpc.StatusRuntimeException: INTERNAL: no cache manager 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.contactList(PuppetGrpc.java:2841) ~[grpc-0.16.1.jar:?] at io.github.wechaty.grpc.GrpcPuppet$contactList$1.get(GrpcPuppet.kt:386) ~[wechaty-puppet-hostie-0.1.5-20200719.133816-1.jar:?] at io.github.wechaty.grpc.GrpcPuppet$contactList$1.get(GrpcPuppet.kt:29) ~[wechaty-puppet-hostie-0.1.5-20200719.133816-1.jar:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]

Using <groupId>io.github.wechaty</groupId> <artifactId>wechaty</artifactId> 0.1.5-SNAPSHOT

with puppet puppet_donut_

Code to simulate

public void sendMessage(String message, String contactId) {
    ContactQueryFilter singleContactQueryFilter = new ContactQueryFilter();
    singleContactQueryFilter.setId(contactId); 
    wechaty.getContactManager().find(singleContactQueryFilter);

}

Charles-Wu-Chen avatar Jul 17 '21 06:07 Charles-Wu-Chen