vue项目接口域名动态的获取方法
707
2022-09-07
python3连接etcd3 grpc报错解决方法
本例环境如下:
python版本: 3.7
etcd3版本: 0.12.0
报错信息:
File "/tools/apps/venv/lib/python3.7/site-packages/etcd3/client.py", line 48, in handler _translate_exception(exc) File "/tools/apps/venv/lib/python3.7/site-packages/etcd3/client.py", line 46, in handler return f(*args, **kwargs) File "/tools/apps/venv/lib/python3.7/site-packages/etcd3/client.py", line 424, in put metadata=self.metadata File "/tools/apps/venv/lib/python3.7/site-packages/grpc/_channel.py", line 946, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/tools/apps/venv/lib/python3.7/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking raise _InactiveRpcError(state)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 = "{"created":"@1650335047.885697270","description":"Error received from peer 172.0.0.1:8030","file":"src/core/lib/surface/call.cc","file_line":906,"grpc_message":"Established channel does not have a sufficient security level to transfer call credential.","grpc_status":16}"
本例连接异常是因为grpcio版本太高,grpcio==1.45.0
降级后解决
pip uninstall grpcio
pip install grpcio==1.19.0
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~