kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
439 stars 47 forks source link

403 errors #51

Open aaronjensen opened 5 years ago

aaronjensen commented 5 years ago

I've recently started seeing several 403s while syncing:

org-gcal-sync: error: (error Got error 403: (error http 403))
Mark set
REQUEST [error] Error (error) while connecting to https://www.googleapis.com/calendar/v3/calendars/email/events/eventid
(error http 403)

If it helps, I have two calendars syncing. One for my primary email (for which the token is) and one for my secondary, which shares the calendar with my primary email completely.

podiki commented 4 years ago

I also started getting 403s like (IDs removed for pasting purposes)

[error] request--callback: peculiar error: 403
[error] request-default-error-callback: https://www.googleapis.com/calendar/v3/calendars/ID@import.calendar.google.com/events/EVENTID error
org-gcal-sync: error: (error Got error 403: (error http 403))

This is from an external Outlook calendar that I imported to Google. If I try to browse to the long URL from googleapis I get an error about rate limits:

{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceededUnreg",
        "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
        "extendedHelp": "https://code.google.com/apis/console"
      }
    ],
    "code": 403,
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
  }
}
japhir commented 4 years ago

I'm having the same issue right now. It appears to only happen with one of the calendars when I run it with org-gcal-fetch-buffer. But when I run the more general org-gcal-fetch it does pull in everything, but results in many duplications of events in all calendars. Did any of you manage to resolve the issue? Should I just set it up from scratch again?

podiki commented 4 years ago

Yeah, I get duplicate events and still errors, but they are now 401 (and just get it once, not on retries). I'll just delete the calendar files sometimes and fetch it from scratch. I only use org-gcal-fetch.

[error] request--callback: peculiar error: 401
[error] request-default-error-callback: https://www.googleapis.com/calendar/v3/calendars/[accountname]@gmail.com/events error