Solved Token problem
abhinavg21500 last edited by abhinavg21500
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run token
MMM-GoogleAssistant@4.0.3 token /home/pi/MagicMirror/modules/MMM-GoogleAssistant
Welcome to MMM-GoogleAssistant Token generator!
Do you want to install/reinstall MMM-GoogleAssistant token? [Y/n]
Your choice: y
Opening OAuth URL. Return here with your code.
If your browser will not open, you can copy/paste this URL:
Paste your code: 4/0AX4XfWh_633zXua6GFuFWpr71in7ehugl-n_5e-OG6rlc3ErfzBi0CcN0PzPnpTDd5qiLA
(node:5801) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘data’ of undefined
at processTicksAndRejections (internal/process/task_queues.js:95:5)
node --trace-warnings ...to show where the warning was created)
(node:5801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:5801) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I tried many times but got same error . i tried with different google accounts and followed wiki also.
Sorry for Bad English.
if anyone know so please try to resolve fast because i have to submit this project as major project in my university
bigjojo last edited by
hello, how do you run the npm run token command.
via putty or others in ssh or what must be done directly or via vnc with the terminal on the mirror
you have followed all the creation steps on the google cloud, copy paste the json and renamed it to credentials.json in the home assistant folder.
the scrupulous follow-up of the wiki is paramount.
I use directly raspberry pie with my monitor. I used same step credential file to the GA folder and i use npm run token. It’s run successfully . When I generate token and paste to terminal then this error come. In first time it’s run successfully all things work fine but next day it’s show me to regenerate token and then do that again then this error come
bugsounet Main Coder last edited by bugsounet
Hi, can you try:
cd ~/MagicMirror/modules/MMM-GoogleAssistant npm run update
I just update the GA library
Note: It must display the error correctly
Ok i try and let you know
thank u bro its run now
bro i have to do donation but that shows that Donations to this recipient aren’t supported in this country
can you tell me other method for that so i send you donation
my country is india
bugsounet Main Coder last edited by
Hi, I have not actually, sorry