Related:
(I didn’t want to resurrect that thread, but it’s the same error.)
When running a query I get the following error.
Error: 2 UNKNOWN: : while converting to subgraph: while filling args: strconv.ParseInt: parsing "": invalid syntax
at Object.exports.createStatusError (/home/node/app/node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:1209:28)
at InterceptingListener._callNext (/home/node/app/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/home/node/app/node_modules/grpc/src/client_interceptors.js:847:24) {
locations: [ [Object] ],
path: [ 'userList' ]
}
My query is
query items($firstPager_first: int, $userPager_first: int) {
var (func: type(User)) {
main as uid
}
totalCount (func: uid(main)) {
count(uid)
}
first (func: uid(main), orderasc: <username>, first: $firstPager_first) {
uid
}
last (func: uid(main), orderdesc: <username>, first: $firstPager_first) {
uid
}
items (func: uid(main), orderasc: <username>, first: $userPager_first) {
uid
username
status
dgraph.type
email
}
}
$firstPager_first and $userPager_first are 1 and 20 respectively.
If I run the query in Ratel, I don’t see any errors.
If I dig into grpc, it looks like the error is part of the dgraph response.