Skip to content

Commit d47e867

Browse files
committed
Document workaround for gRPC issue.
1 parent e823d2b commit d47e867

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/coherence/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ async def handshake(self) -> None:
9696
self._protocol_version = response.init.protocolVersion
9797
self._proxy_member_id = response.init.proxyMemberId
9898
except grpc.aio._call.AioRpcError as e:
99+
error_code: int = e.code().value[0]
99100
if (
100-
e.code().value[0] == grpc.StatusCode.UNIMPLEMENTED.value[0]
101-
or e.code().value[0] == grpc.StatusCode.INTERNAL.value[0]
101+
error_code == grpc.StatusCode.UNIMPLEMENTED.value[0]
102+
or error_code
103+
== grpc.StatusCode.INTERNAL.value[0] # work around for grpc https://github.com/grpc/grpc/issues/36066
102104
):
103105
pass
104106
else:

0 commit comments

Comments
 (0)