API filter getting 500
I would like to use the API to fetch some data. One of them contains a select field.
According to the doc I should be using
createdAt[gte]:\"2023-01-01\"
so with the select field :
status[in]:[\"closed\"]
But I keep getting 500 errors
(I've tried also status[in]:["closed"] | status[in]:[closed]
...) but each time a 500 error :/
Thanks in advance for the help !5 Replies
@martmull REST API debugging incoming!
@martmull is still busy on another issue but we will take a close look right after 🙂
@charles @ferdi9544 here is the fix -> https://github.com/twentyhq/twenty/pull/4909
GitHub
4902 bug fix fix api filter for enum by martmull · Pull Request #49...
Those filters now works:
http://localhost:3000/rest/opportunities?filter=stage[eq]:MEETING
http://localhost:3000/rest/opportunities?filter=stage[in]:[MEETING,NEW]
When providing wrong enum values...
The fix has been merged and will be deployed as part of 0.10
Hey ! The fix has been released on cloud ? Still on 0.4.0 on my end and still have a lot of 500 (And now :
500 - "{\"error\":\"AxiosError: Request failed with status code 500. Please check your query.\"}"
)
My workspace is colecHey @ferdi9544, the fix is not released yet on app.twenty.com
we do our best to release the new version (with the fix) this week