-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query failing with "negative substring length not allowed" #55
Comments
Thanks for opening an issue! On the demo instance, that returns: {
"errors": [
{
"extensions": {
"code": "data-exception",
"path": "$"
},
"message": "negative substring length not allowed"
}
]
} That's an error coming back from Postgres. To figure it out, we'd need to run the query in the Hasura console and use the I'd guess it's because you're filtering by I'd guess |
Thing is, other conditions don't limit it to 0. For example if you change to |
Also, this one which selects only 1 block trips with the same error. Change _gte and _lt heights +1 and it returns empty array proper. Commenting out the
|
Replacing regex with like fails on some blocks, too: Query
Result
|
If
limit: 1
then it fails, if some greater number then it executes OK.In this example even
limit: 2
executes OK.The text was updated successfully, but these errors were encountered: