Database Error: Postgres Error when calling Strapi Controller method

At some point it appears you are trying to request data for undefined or you aren’t passing an integer as a lookup.

do you have the code for your controller?