Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error_Auth_Needed #42

Open
ianlube opened this issue Jul 15, 2023 · 5 comments
Open

Error_Auth_Needed #42

ianlube opened this issue Jul 15, 2023 · 5 comments

Comments

@ianlube
Copy link

ianlube commented Jul 15, 2023

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

@randomBrainstormer
Copy link
Owner

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

@gfmccutc77
Copy link

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?

@randomBrainstormer
Copy link
Owner

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.

@gfmccutc77
Copy link

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.

@xIExodusIx
Copy link

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants