python-etcd3 icon indicating copy to clipboard operation
python-etcd3 copied to clipboard

Bug in grpcio>=1.54.0

Open bashar94 opened this issue 2 years ago • 1 comments

I am getting the following error when I tried to authenticate using username and password.

Though using grpcio==1.44.0 solved the issue for now

Just created this issue so that others can get an idea about the solutions and this issue gets fixed in upcoming versions.

My etcd database version is 3.5.9 and etcd3==0.12.0

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/myproject/venv/lib/python3.10/site-packages/etcd3/client.py", line 48, in handler
    _translate_exception(exc)
  File "/root/myproject/venv/lib/python3.10/site-packages/etcd3/client.py", line 46, in handler
    return f(*args, **kwargs)
  File "/root/myproject/venv/lib/python3.10/site-packages/etcd3/client.py", line 534, in status
    status_response = self.maintenancestub.Status(
  File "/root/myproject/venv/lib/python3.10/site-packages/grpc/_channel.py", line 1030, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/root/myproject/venv/lib/python3.10/site-packages/grpc/_channel.py", line 910, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAUTHENTICATED
	details = "Established channel does not have a sufficient security level to transfer call credential."
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Established channel does not have a sufficient security level to transfer call credential.", grpc_status:16, created_time:"2023-06-25T10:18:55.858860189+00:00"}"

bashar94 avatar Jun 25 '23 11:06 bashar94

@bashar94 I used etcd3 = "0.12.0" and grpcio = "1.44.0" with poetry in my project. image

But a segfault occurs, have you run into this problem? image

nntp4 avatar Nov 27 '23 09:11 nntp4