food.get.v3 Invalid Id bug

48 views
Skip to first unread message

Jeremy Kazakov

unread,
Feb 19, 2024, 2:53:37 PMFeb 19
to FatSecret Platform API
Hello FatSecret team,
I've found a bug. When i send request food_entries.get_month.v2 i receive a json
{"calories": "23", "carbohydrate": "0.25", "date_int": "19769", "fat": "0.75", "food_entry_description": "1\/4 serving Филе Индейки в\/К", "food_entry_id": "16072378377", "food_entry_name": "Филе Индейки в\/К", "food_id": "73286046", "meal": "Breakfast", "number_of_units": "0.250", "protein": "3.75", "serving_id": "59665952" }
but food.get.v3 request with food_id = 73286046 returns me error
{
    "error": {
        "code": 106,
        "message": "Invalid ID: food_id '73286046' does not exist"
    }
}

seba...@fatsecret.com

unread,
Feb 19, 2024, 3:05:08 PMFeb 19
to FatSecret Platform API
Hi there,

Thanks for reaching out. It could be that this food item has since been removed from our database (for various reasons, such as the manufacturer taking it off the shelves). We will double check and be in touch once we know more.

Kind regards,
The FatSecret Platform API Team

Jeremy Kazakov

unread,
Feb 27, 2024, 4:42:38 PMFeb 27
to FatSecret Platform API
Any updates?

понедельник, 19 февраля 2024 г. в 23:05:08 UTC+3, seba...@fatsecret.com:

seba...@fatsecret.com

unread,
Feb 27, 2024, 4:43:31 PMFeb 27
to FatSecret Platform API
Hi there,
The food mentioned was a custom food set up a by an individual user and later deleted. A very rare use case we have not seen in the past 10 years.
Kind regards,
The FatSecret Platform API team

Jeremy Kazakov

unread,
Mar 4, 2024, 6:23:58 AMMar 4
to FatSecret Platform API
Thank you!

среда, 28 февраля 2024 г. в 00:43:31 UTC+3, seba...@fatsecret.com:
Reply all
Reply to author
Forward
0 new messages