I am getting an error file filtering data from contentful using client.getEntries({content_type: 'post'})

I am getting an error message: "The query you sent was invalid. Probably a filter or ordering specification is not applicable to the type of a field." while executing the following code. I couldn’t get much help from contentful docs.

> useEffect(() => {
>           client.getEntries({content_type: 'post'}).then((response) => {
>               console.log('Response ==> ', response);
>               console.log('items ==> ', response.items);
>               let listings = [];
>               listings = response.items.map((item) => {
>                   const { title, description } = item.fields;
>                   return {
>                       name,
>                       description
>                   }  
>               })
>               console.log('listings ==> ', listings);
>               Posts(listings);
>           }).catch(console.error)
>       }, [])