MMM-GoogleCalendar icon indicating copy to clipboard operation
MMM-GoogleCalendar copied to clipboard

Error_Auth_Needed

Open ianlube opened this issue 1 year ago • 5 comments

Hi, I followed all of the steps and authenticated, but it still comes up with this message on my Magic Mirror display.

ianlube avatar Jul 15 '23 14:07 ianlube

Hi @ianlube, are you able to see any errors in the logs?

randomBrainstormer avatar Aug 06 '23 09:08 randomBrainstormer

So I am having this same issue, went through everything twice to make sure I was getting it done properly. I am about 90% sure I followed everything properly, however that other 10% is there because it is not working at this point. My log reads: [2024-08-27 15:10:17.015] [LOG] undefined: Error loading token: [Error: ENOENT: no such file or directory, open 'C:\Users\gfmcc\magicmirror\modules\MMM-GoogleCalendar\token.js'] { errno: -4058 Code: 'ENOENT' syscall: 'open' path: 'C:\Users\gfmcc\magicmirror\modules\MMM-GoogleCalendar\token.json' } Make sure you have authorized the app.

Then a bunch of other error about Autofill

Where did I go wrong?

gfmccutc77 avatar Aug 27 '24 20:08 gfmccutc77

Thanks for reaching out, @gfmccutc77! It looks like there's an issue with the authorization process, and your token.js file wasn't generated. As mentioned in the troubleshooting section, you need to run authorize.js to auto-generate the token file. If you've already run node authorize.js and the error persists, please check for any issues during the Google authentication process.

randomBrainstormer avatar Aug 27 '24 21:08 randomBrainstormer

I had ran the "node authorize.js" previously, but I ran it again to double check and it seems to have fixed the issue. Thank you for the quick response, I appreciate it. And thank you for the module work, it is going to be used as a chore list for my kids.

gfmccutc77 avatar Aug 28 '24 13:08 gfmccutc77

I have the same problem, "node authorize.js" does not run, "credentials.json" not found, but it is there.

-rw-r--r-- 1 pi pi 2778 Sep 23 18:13 authorize.js -rw-r--r-- 1 pi pi 366 Sep 23 18:13 calendar.css -rw-r--r-- 1 pi pi 412 Sep 23 19:44 credentials.json -rw-r--r-- 1 pi pi 319 Sep 23 18:13 .eslintrc.js drwxr-xr-x 8 pi pi 4096 Oct 1 17:45 .git -rw-r--r-- 1 pi pi 42 Sep 23 18:13 .gitignore -rw-r--r-- 1 pi pi 787 Sep 23 18:13 helpers.js -rw-r--r-- 1 pi pi 2662 Sep 23 19:17 index.js -rw-r--r-- 1 pi pi 1062 Sep 23 18:13 LICENSE -rw-r--r-- 1 pi pi 34683 Sep 23 18:13 MMM-GoogleCalendar.js -rw-r--r-- 1 pi pi 8535 Sep 23 18:13 node_helper.js drwxr-xr-x 55 pi pi 4096 Oct 1 09:07 node_modules -rw-r--r-- 1 pi pi 9 Sep 23 18:13 .nvmrc -rw-r--r-- 1 pi pi 941 Sep 23 18:13 package.json -rw-r--r-- 1 pi pi 38456 Oct 1 09:27 package-lock.json -rw-r--r-- 1 pi pi 16577 Sep 23 18:13 README.md -rw-r--r-- 1 pi pi 95357 Sep 23 18:13 screenshot.png drwxr-xr-x 2 pi pi 4096 Oct 1 09:07 translations pi@MirrorPi:~/MagicMirror/modules/MMM-GoogleCalendar $ node authorize.js MMM-GoogleCalendar: Error loading credentials [Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/MMM-GoogleCalendar/token.json'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/pi/MagicMirror/modules/MMM-GoogleCalendar/token.json' }

And then it stops after the last } and has to be aborted with "CTRL C".

xIExodusIx avatar Oct 01 '24 15:10 xIExodusIx