Connecting to a running alpha

Moved from GitHub pydgraph/95

Posted by kashesha:


I have a zero, alpha and ratel running (from installed binaries). The ratel instance works fine on http://localhost:8080/. I’m trying to run with:

def create_client_stub():
return pydgraph.DgraphClientStub(‘localhost:8080’)

but get the error:

Error: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “Trying to connect an http1.x server”
debug_error_string = “{“created”:”@1573172159.765943000",“description”:“Error received from peer ipv6:[::1]:8080”,“file”:“src/core/lib/surface/”,“file_line”:1055,“grpc_message”:“Trying to connect an http1.x server”,“grpc_status”:14}"

I’m not sure what this error relates to since I can connect to Alpha fine from terminal/ratel.


kashesha commented :

Thanks to Prashant for the following fix:

You need to use gRPC port (9080) instead of HTTP port (8080) for the python client.