12-04-2025 12:19 - edited 12-04-2025 12:21
12-04-2025 12:19 - edited 12-04-2025 12:21
The API for logging foods seems to have broken today. (Also seems to be broken in the mobile apps)
{
"error": {
"code": 400,
"message": "Invalid value (oneof), oneof field '_food_id' is already set. Cannot set 'food_id'",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid value (oneof), oneof field '_food_id' is already set. Cannot set 'food_id'"
}
]
}
]
}
}Request URI
/1/user/-/foods/log.json?foodId=29060&mealTypeId=7&amount=0.5&unitId=319&date=DATEGOESHERE
Answered! Go to the Best Answer.
12-04-2025 12:24
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
12-04-2025 12:24
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
12-04-2025 12:24
Same root cause as this, perhaps.
Best Answer