9

I submitted the following request using the API explorer in the Google Cloud Console:

{
"query": {
"kinds": [
{
"name": "Car"
}
],
"filter": {
"propertyFilter": {
"property": {
"name": "car_name"
},
"operator": "equal",
"value": {
"stringValue": "Honda"
}
}
}
}
}

And I got the following response:

{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 503,
"message": "Backend Error"
}
}

I've authenticated with OAuth as well. Why won't this work?

2daaa
  • 2,788
  • 7
  • 33
  • 44
  • 1
    Have you enabled the Cloud Datastore API? You can check by visiting https://console.developers.google.com, clicking on your project, then APIs & auth -> APIs. – Ed Davisson Oct 04 '14 at 00:38
  • Yes, the Cloud Datastore API is enabled. – 2daaa Oct 04 '14 at 02:21
  • You might want to try with the API explorer, run EXACTLY that query, and see the message it creates. Sometimes you think your message is properly formatted (which it looks like it is), and it turns out there's an extra "repeated" field that means you need another [] bracket somewhere. Looking at what the API explorer does will help finding out your differences. – Patrice Oct 06 '14 at 15:51
  • The query and response I posted in the question are from the API explorer. – 2daaa Oct 06 '14 at 16:29
  • Can you share your project ID and the value you're putting in the `datasetId` field? If you prefer, you can instead send this info to the @google.com email address that's on my profile. – Ed Davisson Oct 06 '14 at 16:34
  • @Ranjit did you ever figure out what was happening? It would be nice if you could post back to the thread you created to let potential other users know how you got a fix. – Nick Dec 19 '14 at 23:55
  • 1
    It turned out to be a problem with our specific application that Google had to fix. I don't have any real visibility into what exactly they had to do to fix it. – 2daaa Dec 20 '14 at 03:36
  • @EdDavisson your advise really helped me to use API Explorer. Thanks! – Vladimir Obrizan Feb 10 '15 at 12:19

1 Answers1

10

I see these errors myself sometimes. AFAIK, this basically says "You did everything right, but Google is having some trouble handling your request."

If you see this happening a lot, you should check status.cloud.google.com to see if there are any known issues.

In short: there's not much you can do about a 503 Backend Error. :(

JJ Geewax
  • 10,342
  • 1
  • 37
  • 49