API raise exception instead of returning []

Ok, I get the error, it something I’ve looked up.

What I don’t undestand is why it happen in that case, what can I do, and why does the whole work when I use a valid id.

I checked my PostGRES and my id column is of type uuid (autogenerated). My exception also said :

value `"b416bab4-e526-49cd-8109-45aed0baee3"` cannot be dumped to type :binary_id in query:

So, I think I am not using an integer id. What am I missing ?