Hello I’m starting to use graphql for a side project I have.
I’ve been using a local docker container to run my test and after the talk yesterday I decided to test slash graphql.
Right now I seem to have hit a roadblock.
I’m unable to get any Query to run, I keep getting messages like this:
rpc error: code = Unknown desc = : HTTP status code 464; transport: missing content-type field
Or
rpc error: code = Unimplemented desc = Not Found: HTTP status code 404; transport: received the unexpected content-type “text/plain; charset=utf-8”
I’m using this code to do the authentication to the slash dgraph
All of this is very confusing because I don’t know what part is bugging with what.
Thanks for your help
Edit:
Just wanted to say that I’ve configured the backing in Flexible mode
@sbres I believe you are using wrong url to establish grpc connection. For example, if your GraphQL Endpoint is https://frozen-mango-42.eu-central-1.aws.cloud.dgraph.io/graphql , your gRPC endpoint will be frozen-mango-42.grpc.eu-central-1.aws.cloud.dgraph.io:443. Do check the grpc tag which is different. Please confirm this if this is the case.
Thanks for your messages, but I’m indeed using the right endpoint. @aman-bansal
Could you please elaborate which tag is different? Right now the code is based on the example code I posted. I saw another post, where someone else managed to connect using it.
@gja Great news, maybe I should keep using my local instance and wait for the PR?
@sbres So in general if your backend endpoint is <name>.<region>.<Identity Provided>.dgraph.io, then grpc endpoint would be <name>.grpc.<region>.<Identity Provided>.dgraph.io difference is grpc tag between name and region. Here is the sample I have tested.
@aman-bansal
Amazing, It’s working now. Such a small mistake on my side. I was starting to become crazy on my code.
I think adding something on this page would help people to avoid missing it.
Something like
“Don’t be like Stephane and remember to add .grpc to your hostname” hahaha
Seems interesting but I think it should be more clear on the slash dashboard itself. Considering the impact and difference, it’s quite easy to miss.
@gja can we mention two separate URLs (one for HTTP and one for GRPC) in the slash dashboard? I believe that might need some design consideration. This is an easy miss. We should think to improve clarity around this.