我制作服务器并在Windows中成功请求,然后将它们放到公司的开发机器linux上。
运行clien.py时出现“连接失败”错误。我已将主机IP更改为localhost,0.0.0.0,127.0.0.1
并将开发机的IP更改了,但是它不起作用。
我尝试了docker inspect
命令,但是IPAddress
像""
一样是空的。
我将端口更改为8500,8501,4321,仍然出现错误。
我尝试为公司制作代理,请求返回Name resolution failure
错误。所以我认为可能是公司的原因所在?
任何答案将不胜感激!
错误消息:
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Connect Failed"
debug_error_string = "{"created":"@1551677753.381330483","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2721,"referenced_errors":[{"created":"@1551677753.381328206","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"@1551677753.381303114","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":689,"grpc_status":14,"referenced_errors":[{"created":"@1551677753.381278484","description":"Failed to connect to remote host: OS Error","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":205,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:0.0.0.0:8501"}]}]}]}"