I’m currently connecting to the slash endpoint using the dgraph-js client like so:
const clientStub = new dgraph.clientStubFromSlashGraphQLEndpoint(address, apiKey)
const client = new dgraph.DgraphClient(clientStub)
I’m sure i’m passing the apikey correctly (it’s an env)
But from occasionally i get an error:
ClientError: 2 UNKNOWN: A valid API key was not passed in