Reports API 503 Backend Error

混江龙づ霸主 提交于 2019-12-23 14:54:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!