Closed davidkel closed 2 years ago
The first one:
14 UNAVAILABLE: failed to select a set of endorsers that satisfy the endorsement policy
gets generated if discovery believes one or more peers are available, but the gateway fails to connect to it/them. So this one I could definitely append the list of endpoints that failed to connect.
The second one:
14 UNAVAILABLE: no combination of peers can be derived which satisfy the endorsement policy: ...
gets generated by the discovery service. It will only include a peer in an endorsement plan if it believes that peer is alive. And it gets that information from periodic gossip messages. Whether you get this error, or the previous one, is probably just down to timing relative to the gossip messages. The gateway doesn't have much it can add to the error message for this case.
resolved
When attempting to submit a transaction where we know the environment is not in a good state and thus errors are expected, the following 3 types of errors were received
and
The last one includes details looks to provide additional clues into why the error message occurs whereas the first 2 don't, so you would need to look in the gateway peer logs to try to see what the true cause of these error messages are.
the log does show connectivity problems which could be the cause of the message
So this issue is about having a discussion on if it's possible to include more detail back to the client about the true cause or whether there is a need for logging in the gateway to help determine if the connectivity errors seen further up in the log are the contributors to the error message.