Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

400 error logging foods (RPC "_food_id is already set")

ANSWERED

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

 

Best Answer
1 BEST ANSWER

Accepted Solutions

Same root cause as this, perhaps.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

Same root cause as this, perhaps.

Peter McLennan
Gondwana Software
Best Answer
0 Votes