I’m sure it’s me, but I see nothing in the docs that I have found helpful.
I did get the async connection working with a SlashCloud schema … for a day. Then it stopped working.
I’m now looking to run this in test, on localhost. I have pulled the docker-standalone image and have set up a Spring configuration bean, autowired into a test /v1/test/dgraph
endpoint.
I can hit my docker instance at localhost:8080/graphql via GraphQL Playground. I do have data out there.
I have tried to invoke the synchronous client thusly:
@Autowired
private DgraphConfigurerTest dgraphConfigurerTest;
...
try {
response = ResponseEntity.ok("Dgraph version: " + dgraphConfigurerTest.getDgraphClient().checkVersion().getTag());
} catch (Exception e) {
logger.error("Dgraph failure: " + e.getCause() + "\n" + e.getMessage());
}
if I connect on 9080, I see java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
. If I connect on 8080, I see java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: INTERNAL: http2 exception
Has anyone successfully connected to Dgraph using Spring Boot??