问题
For the past couple of weeks the batch task I use to retrieve User Usage Reports from the Reports API has been failing with the following response:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 OK
{
"code" : 503,
"errors" : [ {
"domain" : "global",
"message" : "Backend Error",
"reason" : "backendError"
}],
"message" : "Backend Error"
}
Is anyone else seeing this error? Seems like an internal error on the API. Is there anything I can do on my end to avoid this problem? Thanks!
回答1:
you have this error beacause Project Number (Sender ID) is not found or deleted. Create the news project in https://console.developers.google.com/project and test with this url :https://www.googleapis.com/storage/v1/b?project= Project Number
Thanks
回答2:
I was having a 503 in my backend when i had an endpoint query. when you are using google datastore first you have to run it on localhost so it would create the index in a file called datastore-indexes-auto.xml this is automaticaly generated.
this is an index example
<!-- Used 1 time in query history -->
<datastore-index kind="Conference" ancestor="true" source="auto">
<property name="name" direction="asc"/>
</datastore-index>
来源:https://stackoverflow.com/questions/18469982/reports-api-503-backend-error