Error: t: Uid: [10001] cannot be greater than lease: [10000]

insert data error . for example

{
“set”:[
{
“uid”: “10001”,
“name”: “join”
}
]
}

Hey @wangliujing, error is because you are trying to insert uid which is greater than uid leased by zero. You can ask zero to lease more by hitting /assign endpoint of zero. For more details check this https://dgraph.io/docs/deploy/#more-about-dgraph-zero

1 Like

Uids have to be allocated by Dgraph, or leased out explicitly by Zero.

https://dgraph.io/docs/deploy/#more-about-state-endpoint

See /assign?what=uids&num=1000

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.