• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

python3连接etcd3-grpc报错解决方法

python 搞代码 3年前 (2022-04-21) 51次浏览 已收录 0个评论

本例环境如下:

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}"

降级后解决

pip uninstall grpcio

pip install grpcio==1.19.0

以上就是本次分享的全部内容,当初想要学习编程的小伙伴欢送关注搞代码,获取更多技能与教程。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:python3连接etcd3-grpc报错解决方法
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址