org-gcal.el icon indicating copy to clipboard operation
org-gcal.el copied to clipboard

deferred error : (wrong-type-argument char-or-string-p (error http 400)) when doing org-gcal-fetch

Open idontgetoutmuch opened this issue 9 years ago • 9 comments

This may not be possible but I have a personal id ([email protected]) and a work id ([email protected]) so I have set up in .emacs

(setq org-gcal-client-id "your-id-foo.apps.googleusercontent.com" org-gcal-client-secret "your-secret" org-gcal-file-alist '(("[email protected]" . "~/foo.org")))

(setq org-gcal-client-id "your-id-bar.apps.googleusercontent.com" org-gcal-client-secret "your-other-secret" org-gcal-file-alist '(("[email protected]" . "~/bar.org")))

The first one works but if I execute the second (position the cursor at the end and C-x C-e) then when I do e.g. org-gcal-fetch I get deferred error : (wrong-type-argument char-or-string-p (error http 400)).

Should this work? Is there a way of making it work? Is there a better way of using two different google ids?

idontgetoutmuch avatar Sep 09 '14 16:09 idontgetoutmuch

Hi, I know it has been a while, did you manage to solve this issue? I am having this with one entry

darrylhebbes avatar Dec 07 '14 21:12 darrylhebbes

No

idontgetoutmuch avatar Dec 08 '14 09:12 idontgetoutmuch

Hi

same issue here, any solution

Z

zeltak avatar Jul 24 '15 07:07 zeltak

I just had this problem and managed to fix. For some reason, my client id in google console had changed. I updated in my init.el and now it works again.

sollidsnake avatar Sep 19 '15 20:09 sollidsnake

Thanks @sollidsnake for your feedback. I don't know if that means that this issue is resolved for the other people (?), but anyway I have to mention that the commit https://github.com/myuhe/org-gcal.el/commit/fe9182495722237b1338999036fa4cad26a552c7 that is now part of master should prevent the type error occuring here (wrong-type-argument char-or-string-p …) and just notify the user with (error http 400).

erikmd avatar Sep 23 '15 11:09 erikmd

I'm also getting (error http 400).

justmytwospence avatar Oct 22 '15 04:10 justmytwospence

And me too

l-margiela avatar Jun 30 '16 16:06 l-margiela

I had similar problem and fixed it by manually calling (org-gcal-request-token) in order to grant access to application for all my calendars. It turns out that org-gcal doesn't really check if application has access to calendar.

d12frosted avatar Sep 20 '16 16:09 d12frosted

Hi everyone! This repository is obsolete - the actively developed fork is now https://github.com/kidd/org-gcal.el, which is also the "org-gcal.el" on MELPA (see #115). I'm one of the maintainers of https://github.com/kidd/org-gcal.el. I can't directly close issues or PRs on this repo, but please download https://github.com/kidd/org-gcal.el and see if your issue or PR is still applicable. If so, open an issue or PR on https://github.com/kidd/org-gcal.el. In any case, you should close your issue or PR in this repo.

telotortium avatar Jun 11 '20 18:06 telotortium