kidd / org-gcal.el

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

401 error when doing org-gcal-sync #57

Open taylor-gl opened 4 years ago

taylor-gl commented 4 years ago

Whenever I try org-gcal-sync I get:

REQUEST [error] Error (error) while connecting to https://www.googleapis.com/calendar/v3/calendars/l47bjiwa0oqfhdtrig41t68i1g/events. OAuth token expired. Now trying to refresh-token REQUEST [error] Error (error) while connecting to https://www.googleapis.com/oauth2/v3/token. deferred error : (error "Got error 401: (error http 401)")

I don't know what is causing this, but I have verified that I have set the client ID and client secret correctly. I'm not sure that I'm setting the calendar ID in org-gcal-file-alist correctly, but I've tried the ID code with and without the "@group.calendar.google.com" at the end, and it doesn't work either way.

g4v4g4i commented 4 years ago

I have the same problem. This may have to do with #58 since it seems we need to additionally setup a consent screen in the google API interface. However, for setting the scope "auth/calendar.events" google wants to additionally verify.