I’m just getting started with Dgraph and working with the free hosted account on Dgraph cloud. I have a schema and now I want to load some test data to work with. Ideally I would like to load from a single file so it can be repeated in an automated to setup new test environments.
I am trying to use the dgraph live
command but I’m having trouble connecting. Is this something that can be used with the free cloud account? I did find my “gRPC Endpoint” in the settings and I’m using that as the --alpha
argument. I also generated an api key and tried passing that as the --auth_token
arg. Here’s what I get:
❯ dgraph live --files dev-data.json --alpha XXXXXX-0000000.grpc.us-east-1.aws.cloud.dgraph.io:443 --auth_token XXXXXXXXX
I0422 18:37:55.883899 124217 init.go:110]
Dgraph version : v21.12.0
Dgraph codename : zion
Dgraph SHA-256 : abcdefg012345
Commit SHA-1 : abcdefg
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch : HEAD
Go version : go1.17.3
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.
Running transaction with dgraph endpoint: XXXXX-00000.grpc.us-east-1.aws.cloud.dgraph.io:443
While trying to setup connection: context deadline exceeded. Retrying...
2022/04/22 18:38:06 Could not setup connection after 1 retries
github.com/dgraph-io/dgraph/x.Fatalf
/ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:120
github.com/dgraph-io/dgraph/x.GetDgraphClient
/ext-go/1/src/github.com/dgraph-io/dgraph/x/x.go:1049
github.com/dgraph-io/dgraph/dgraph/cmd/live.run
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:786
github.com/dgraph-io/dgraph/dgraph/cmd/live.init.0.func1
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:133
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:81
main.main
/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:112
runtime.main
/usr/local/go/src/runtime/proc.go:255
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1581
Can anyone offer advice to get me started?
Thank you!