Maybe (hopefully) I'm missing something very simple, but I can't seem to 
figure this out.


I have a set of Python gRPC services that I would like to put behind a 
nghttpx proxy. For this I need to be able to configure my client with a 
channel on a non-root url. Eg.


channel = grpc.insecure_channel('localhost:50051/myapp')
stub = MyAppStub(channel)


This wasn't working immediately through the proxy (it just hangs), so I 
tested with a server on the sub context.


server = grpc.server(executor)
service_pb2.add_MyAppServicer_to_server(
    MyAppService(), server)
server.add_insecure_port('{}:{}/myapp'.format(hostname, port))
server.start()


I get the following


E1103 21:00:13.880474000 140735277326336 server_chttp2.c:159] 
{"created":"@1478203213.880457000","description":"OS Error",
"errno":8,"file":"src/core/lib/iomgr/resolve_address_posix.c",
"file_line":115,"os_error":"nodename nor servname provided, or not known",
"syscall":"getaddrinfo","target_address":"[::]:50051/myapp"}


So the question is - is it possible to create gRPC channels on non-root 
urls?



ps. Crossposted 
from 
http://stackoverflow.com/questions/40410392/grpc-endpoint-with-non-root-path 
- sorry, but I'm keen to find an answer for this...


-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/0190b636-3e69-4299-944b-d4a292df26ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to