kidd / org-gcal.el

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

Required parameter is missing: response_type #240

Open mankoff opened 1 year ago

mankoff commented 1 year ago

I'm using the latest master commit and I think I've followed the https://github.com/kidd/org-gcal.el#Installation steps correctly.

When I run org-gcal-fetch my browser opens a window and displays an error message:

Access blocked: Authorization Error
user@gmail.com
Required parameter is missing: response_type
If you are a developer of this app, see
Error 400: invalid_request

I'm not seeing Required parameter is missing: response_type mentioned in any previous issues.

telotortium commented 1 year ago

@mankoff Could you let me know if you've customized any org-gcal- or oauth2-auto- or plstore- variable? What are their values (redact any sensitive info)?

mankoff commented 1 year ago

I've set org-gcal-client-id and org-gcal-client-secret to the values from the Google API page.

I have not set oauth2-auto or plstore to anything. The manual makes it seem like that's a convenience issue so you don't need to enter your password too often. I was going to solve that later.

mankoff commented 1 year ago

More specifically,

  (setq org-gcal-client-id "nnnnnnnn-nnnnnnnnn.apps.googleusercontent.com"
    org-gcal-client-secret "foo-bar--baz"
    org-gcal-fetch-file-alist '(("https://calendar.google.com/calendar/ical/__email__/__private_string__/basic.ics" .  "/path/to/local.org")))
Wacken commented 1 year ago

I had the same issue. I'm not sure which steps are needed, but I solved this problem by adding myself as a test user on the OAuth consent screen.