'Strapi - Your filters contain a field '_publicationState' that doesn't appear on your model definition nor it's relations

I am learning to use Strapi (doing a course). I am doing a simple request to Strapi: http://localhost:1337/products

However I am getting this cryptic answer which I have no way of understanding. It seems as if I need to specify somehow in the url some _publicationState filter?

I have created a simple content type called product which has 4 fields:

  • name (text)
  • description (text)
  • price (float)
  • image (media)

I have no other _publicationState field on my content type "product" nor did I do anything specific apart from creating this content type. I haven't created any specific API request/filter or anything that could produce such error. Can anyone that is familiar with STRAPI help? My guess is this is added by STRAPI by default and my URL request needs to be amended. Clearly the course is outdated as person that teaches this does not have any such issue, however I am somewhat stuck at this point. Thank you for your patience with me, I am learning.

{
"statusCode": 400,
"error": "Bad Request",
"message": "Your filters contain a field '_publicationState' that doesn't appear on your model definition nor it's relations"
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source