Exception in Graph java client while connecting to Remote Graph DB


(Rohan) #1

java.lang.RuntimeException: The query encountered an execution exception:
** at io.dgraph.DgraphAsyncClient.lambda$runWithRetries$2(DgraphAsyncClient.java:195)**
** …**
** …**
==================
Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: INTERNAL: http2 exception
** at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)**
** …**
** …**
====================
Caused by: io.grpc.StatusRuntimeException: INTERNAL: http2 exception
** at io.grpc.Status.asRuntimeException(Status.java:526)**
** …**
** …**
====================
Caused by: io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 485454502f
** at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85)**
** …**
** …**

Anything I am doing wrong with the my alpha server start command, which looks like this :


(Daniel Mai) #2

Are you connecting to Dgraph via the gRPC port? The gRPC port is 9080 by default.

This error suggests that you could be connecting to the HTTP port (not the gRPC port). This is exactly like a question asked on grpc-java: https://github.com/grpc/grpc-java/issues/2905


(Rohan) #3

Yes it was a port problem only. Thanks a lot.