grpc: gRPC Name Resolution Failure/Failed to create subchannel

What version of gRPC and what language are you using?

1.19

What operating system (Linux, Windows,…) and version?

macOS High Siera 10.13.6

What runtime / compiler are you using (e.g. python version or version of gcc)

Python3.6 Anaconda3

What did you do?

If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful. While trying to run tensorflow-serving with docker with the following code:

python client.py --server=172.17.0.2/16:9000 --image=./test_images/image2.jpg

What did you expect to see?

I expected to see the object detection outcome.

What did you see instead?

I am getting the following error when issuing a client request through gRPC:

debug_error_string = "{"created":"@1551888435.208113000","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2267,"referenced_errors":[{"created":"@1551888435.208109000","description":"Name resolution failure","file":"src/core/ext/filters/client_channel/request_routing.cc","file_line":165,"grpc_status":14}]}"

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Finally I was able to solve the issue using the following link:

https://medium.com/@smsrikanthreddy/hi-vitaly-8aa7805807b0

basically I run the following lines:

docker run --name=tf_container -it -p 9000:9000 $USER/tensorflow-serving-devel-cpu

python client.py --server=localhost:9000 --image=./test_images/image2.jpg

Thanks for all of the feedback