Which version are you using? There was a similar error fixed in *-dev version.
https://github.com/dgraph-io/dgraph/issues/2014