Google Calendar API:发生网络错误,无法完成请求

时间:2016-05-24 07:26:35

标签: google-calendar-api google-api-php-client

我在Google Calendar API上创建了一个日历列表。我有一个在服务器上运行的作业调度程序,它将使用服务帐户将新事件添加到日历列表中。它之前工作正常,但最近我在添加新事件时继续收到HTTP Code 500 Backend Error。

尝试过指数退避解决方案和Google API资源管理器,但都不起作用。

以下是来自API Explorer的请求和响应

Request

POST https://www.googleapis.com/calendar/v3/calendars/{MY_CALENDAR_LIST_ID}%40group.calendar.google.com/events?key={YOUR_API_KEY}

{
 "end": {
  "dateTime": "2016-07-29T14:00:00",
  "timeZone": "Europe/London"
 },
 "start": {
  "dateTime": "2016-07-29T12:00:00",
  "timeZone": "Europe/London"
 },
 "reminders": {
  "useDefault": true
 },
 "summary": "Some Title of the Event",
 "description": "Some Description for the Event",
 "location": "London"
}



Response


null

{
 "error": {
  "code": -1,
  "message": "A network error occurred, and the request could not be completed."
 }
}

0 个答案:

没有答案