#community-help

Resolving Error with JSON Boolean Field

TLDR GM faced an error with a JSON boolean field, Jason suggested checking the field definition. After using curl commands, GM realized the issue and discussed improving error messages.

Powered by Struct AI
10
3mo
Solved
Join the chat
Jun 20, 2023 (3 months ago)
GM
Photo of md5-9f364f57af6f71faaf6ea963342ef3f6
GM
06:44 PM
in my JSON document i have field like below and this is my search parameters and still getting error like this .this is boolean value..what we are missing here
Image 1 for in my JSON document i have field like below and this is my search parameters and still getting error like this .this is boolean value..what we are missing hereImage 2 for in my JSON document i have field like below and this is my search parameters and still getting error like this .this is boolean value..what we are missing hereImage 3 for in my JSON document i have field like below and this is my search parameters and still getting error like this .this is boolean value..what we are missing here
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:31 PM
Could you check the field definition for that field in the collection schema? It sounds like it might be set to a string
GM
Photo of md5-9f364f57af6f71faaf6ea963342ef3f6
GM
07:34 PM
okay
Image 1 for okay
07:41
GM
07:41 PM
Image 1 for
07:42
GM
07:42 PM
Jason
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:44 PM
Hmm, could you try replicating the issue with this set of curl commands by adapting it to your schema and one sample record: https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b
07:44
Jason
07:44 PM
And share that adapted snippet with me?
GM
Photo of md5-9f364f57af6f71faaf6ea963342ef3f6
GM
07:46 PM
i will dm you..thanks jason
Jun 21, 2023 (3 months ago)
GM
Photo of md5-9f364f57af6f71faaf6ea963342ef3f6
GM
05:00 PM
Jason this issue has been fixed. In the query field added boolean field. thats why we got that error. we can add more exact error message for this scenarios in future releases
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:34 PM
Ah I missed that too from the error message. We’ll improve it