Import data got PermissionDenied

Hi, I have tried this method here to import data that has been exported directly from dgraph slash. However, when I run the command

docker run -it --rm -v /path/to/g01.json.gz:/tmp/g01.json.gz dgraph/dgraph:v20.07-slash \
dgraph live --slash_grpc_endpoint=<grpc-endpoint>:443 -f /tmp/g01.json.gz -t <accessJWT>

I got error below:

Running transaction with dgraph endpoint: <grpc-endpoint>
Error while loading schema from alpha rpc error: code = Unauthenticated desc = Unauthorized: HTTP status code 401; transport: missing content-type field
rpc error: code = Unauthenticated desc = Unauthorized: HTTP status code 401; transport: missing content-type field

I am sure that I have provided the correct accessJWT, but why do I still getting this error?
Any help please?
Thanks

Hi @shinchan you are using the wrong image to connect with your backend. We have come a long way and there are many changes which could have played the role in error. Please use image dgraph/dgraph:v21.03-slash.

Sample script would be

#!/usr/bin/env bash

DEPLOYMENT_URL="your-backend-url"
DEPLOYMENT_JWT="<deployment-jwt>"

docker run -it --rm -v /users/dgraph/downloads:/tmp dgraph/dgraph:v21.03-slash \
  dgraph live --slash_grpc_endpoint=${DEPLOYMENT_URL}:443 -f /tmp/1million.rdf.gz -t ${DEPLOYMENT_JWT}

Deployment JWT is the api key you can generate from the API Key tab on settings page. Do remember it takes about 30 sec for the api key to get active once generated.