Not all of JSON file consumed

Hey Guys,
I’m trying to import the JSON file of the Dgraph database on my system using the data loading tools live loader and bulk loader but getting the following error while importing the data -

Not all of JSON file consumed
github.com/dgraph-io/dgraph/chunker.(*jsonChunker).Chunk
        /ext-go/1/src/github.com/dgraph-io/dgraph/chunker/chunk.go:224
github.com/dgraph-io/dgraph/dgraph/cmd/live.(*loader).processLoadFile
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:503
github.com/dgraph-io/dgraph/dgraph/cmd/live.(*loader).processFile
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:423
github.com/dgraph-io/dgraph/dgraph/cmd/live.run.func2
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:673
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1374

github.com/dgraph-io/dgraph/x.Check
        /ext-go/1/src/github.com/dgraph-io/dgraph/x/error.go:42
github.com/dgraph-io/dgraph/dgraph/cmd/live.(*loader).processLoadFile
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:513
github.com/dgraph-io/dgraph/dgraph/cmd/live.(*loader).processFile
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:423
github.com/dgraph-io/dgraph/dgraph/cmd/live.run.func2
        /ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/live/run.go:673
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1374

Does anyone know about such issues with data loading tools :thinking:

Looks like your JSON has empty objects. Can you check your dataset for any odd object?

Thanks for the support @MichelDiz. Yes, The dataset which I was using was an encrypted one, and the data entries could be not be imported as the entries are present in an encoded format, I had decrypted the database and now it’s working fine.

1 Like