奇怪的错误403:“超过日历使用限制";与参加者添加活动时 [英] Strange error 403: "Calendar usage limits exceeded" when adding event with attendee

查看:98
本文介绍了奇怪的错误403:“超过日历使用限制";与参加者添加活动时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用将"主要"指定为calendarId,并启用" OAuth 2.0 "授权.

Specifying 'primary' as the calendarId, and enabling 'OAuth 2.0' authorization.

请求正文字段如下:

{
  "summary": "Another test",
  "start": {
    "dateTime": "2017-01-17T11:30:00+02:00"
  },
  "end": {
    "dateTime": "2017-01-17T12:00:00+02:00"
  },
  "attendees": [
    {
      "email": "some_mail@some_domain.com"
    }
  ]
}

但是,当单击"授权并执行"按钮时,出现以下错误:

But when clicking the 'Authorize and Execute' button, I get the following error:

403

- Show headers -

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "quotaExceeded",
    "message": "Calendar usage limits exceeded."
   }
  ],
  "code": 403,
  "message": "Calendar usage limits exceeded."
 }
}

如果我发送了相同的请求,但没有"与会者"部分,则每次都可以使用.

If I send the same request but without the 'attendees' part, it works every time.

我在做什么错了?

推荐答案

API资源管理器将您和其他所有使用api资源管理器的用户转储到相同的配额中,因为大多数配额都是基于项目的,并且是相同的项目.

API explorer dumps you into the same quota with everyone else using the api explorer as most of the quotas are project based and its the same project.

您可能会得到它,因为还有其他人同时测试您正在测试的东西.您可以对此进行测试的也有局限性.我怀疑这并不是要完全发挥作用.

You are probably getting it because there are other people testing what you are testing at the same time. There are also limits to what you can test with that. I suspect it wasn't meant to be fully functional.

还要检查日历使用限制 有多少您正在测试吗?

已超过日历使用限制.这是API调用的结果. (请勿将其与超出每日配额"信息混用, 指向API配额不足.)

Calendar usage limits exceeded. This is the result of an API call. (Don't mix this up with the message "Daily quota exceeded," which points to insufficient API quota.)

创建太多事件

如果用户在其日历中创建了10,000个以上的事件 在短时间内,该用户可能会丢失日历编辑 访问.

If a user has created more than 10,000 events in his or her calendar within a short period of time, that user might lose calendar edit access.

解决方案:从您自己的应用程序发送请求,而不是使用api Explorer.

Solution: Send the requests from your own application rather then using api explorer.

我发送的内容正常.

POST https://www.googleapis.com/calendar/v3/calendars/primary/events?sendNotifications=true&key={YOUR_API_KEY}

{
 "end": {
  "dateTime": "2017-01-17T11:30:00+02:00"
 },
 "start": {
  "dateTime": "2017-01-17T11:30:00+02:00"
 },
 "attendees": [
  {
   "email": "ll@xxxx.com"
  }
 ]
}

响应:

200

- Show headers -

{


 "kind": "calendar#event",
 "etag": "\"2969293763864000\"",
 "id": "did1s0f76g79s1ht5aplhieoik",
 "status": "confirmed",
 "htmlLink": "https://www.google.com/calendar/event?eid=ZGlkMXMwZjc2Zzc5czFodDVhcGxoaWVvaWsgbGF1cmx5NzFAbQa",
 "created": "2017-01-17T09:54:41.000Z",
 "updated": "2017-01-17T09:54:41.932Z",
 "creator": {
  "email": "xxxx@gmail.com",
  "displayName": "Linda Lawton",
  "self": true
 },
 "organizer": {
  "email": "xxxxx@gmail.com",
  "displayName": "Linda Lawton",
  "self": true
 },
 "start": {
  "dateTime": "2017-01-17T10:30:00+01:00"
 },
 "end": {
  "dateTime": "2017-01-17T10:30:00+01:00"
 },
 "iCalUID": "1s0f76g79s1ht5aplhieoik@google.com",
 "sequence": 0,
 "attendees": [
  {
   "email": "ll@xxxxx",
   "responseStatus": "needsAction"
  }
 ],
 "reminders": {
  "useDefault": true
 }
}

这篇关于奇怪的错误403:“超过日历使用限制";与参加者添加活动时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆