Fabric-sdk-jAVA #fabric-sdk-java


jeff.jo95z@...
 

hi,

when i was executing using java sdk,I got the following error:

Results :
 
Tests in error:  
  testFabCar(org.example.ClientTest): org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: java.util.concurrent.ExecutionException: io
.grpc.StatusRuntimeException: UNAVAILABLE: io exception(..)

why this error comes?

Attaching the sdk files for the reference



Mark Lewis
 

It looks like the client tried to make a service discovery call to a peer, either to obtain information about other network nodes or to obtain an endorsement plan for a given transaction invocation, but was unable to connect to the peer for some reason. You probably need to look at the bits of the exception you've removed to see the endpoint it tried to connect to, and then check that is an endpoint you can really resolve and reach from your client.