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.