Error message could be more informative

Moved from GitHub dgraph/4562

Posted by dapperAuteur:

What version of Dgraph are you using?


Have you tried reproducing the issue with the latest release?


What is the hardware spec (RAM, OS)?

8 GB
os 10.15.2

Steps to reproduce the issue (command/config used to run Dgraph).

ran mutation
{ "set": [{ "uid": < 0x3 > , "inhabits": { "uid": "0x2711" } }, { "uid": < 0x4 > , "inhabits": { "uid": "0x2711" } } ] }

Expected behaviour and actual result.

tell me which line the error is on and what’s causing the error

MichelDiz commented :

You are using angular brackets in a JSON file. Change < 0x3 > and < 0x4 > to "0x3", "0x4" and you are good to go.