我试图从 C# 中清除主要日历事件:
calendarService.Calendars.Clear("primary").Execute();
在 google api 响应中发现以下错误:
Google.Apis.Requests.RequestError
Backend Error [503]
Errors [
Message[Backend Error] Location[ - ] Reason[backendError] Domain[global]
]
我还尝试检查 Google OAuth2.0 Playground,但它给了我以下 503 错误:
POST /calendar/v3/calendars/primary/clear HTTP/1.1
Host: www.googleapis.com
Content-length: 0
Content-type: application/json
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HTTP/1.1 503 Service Unavailable
Content-length: 177
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-encoding: chunked
Expires: Mon, 28 Aug 2017 05:52:33 GMT
Vary: Origin, X-Origin
Server: GSE
-content-encoding: gzip
Cache-control: private, max-age=0
Date: Mon, 28 Aug 2017 05:52:33 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="39,38,37,35"
Content-type: application/json; charset=UTF-8
{
"error": {
"code": 503,
"message": "Backend Error",
"errors": [
{
"domain": "global",
"message": "Backend Error",
"reason": "backendError"
}
]
}
}
经过一番谷歌搜索后,我也尝试通过指数退避算法重试。但这些都不起作用。