kidd / org-gcal.el

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

On the "First time setup" I'm getting "Error 400: invalid_request" #97

Open AlonTzarafi opened 4 years ago

AlonTzarafi commented 4 years ago

This is what shows up:

image

telotortium commented 4 years ago

Sorry, I can't reproduce. Can you give me the URL (you can obfuscate the exact tokens in the URL)?

Silver292 commented 3 years ago

I had this issue as well and managed to solve it by evaluating:

(concat org-gcal-auth-url
                      "?client_id=" (url-hexify-string org-gcal-client-id)
                      "&response_type=code"
                      "&redirect_uri=" (url-hexify-string "urn:ietf:wg:oauth:2.0:oob")
                      "&scope=" (url-hexify-string org-gcal-resource-url))

in a buffer and pasting the result in the browser.

This prompted me to sign in where I was met with a warning that the app had not been verified. By clicking Advanced and then Go to app-name (unsafe) I was able to get the code needed by gcal.

dalvescb commented 3 years ago

Having this same issue but @Silver292's solution does nothing for me. I'm running spacemacs inside of WSL2

rosslaird commented 3 years ago

Likewise (on Arch) -- however, when I use the same settings on a second machine, it works. This is after removing everything in the ~/.emacs.d/org-gcal directory (a few times) on the first machine, so I don't think the issue is in there. When I use the same settings on the other machine, I am re-prompted for the code, and then it works. Huh.

BenedictHW commented 2 years ago

@Silver292 Thank you for your solution. Worked for me. Spacemacs inside WSL2.

telotortium commented 2 years ago

Hmm, maybe you need to use different client IDs on each of your machines (which means you should generate separate credentials)?

npit commented 2 years ago

Having the same issue, on spacemacs + Arch. No mentioned solution works unfortunately.