Solved Error 400: Invalid_Request when trying "npm run token"
-
can you past me what happen on
npm run token
thanks -
sure! please see below:
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run token > MMM-GoogleAssistant@4.0.7 token > installer/token.sh 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: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fassistant-sdk-prototype&prompt=consent&response_type=code&client_id=1056813255520-sj1d3k0tdht863dnibig9qjctgv5799s.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr Paste your code: Done. pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $
-
You try with terminal or over ssh?
-
In the terminal.
-
and in ssh ?
-
SSH is new to me (this is my first Linux project) so I’ll try to learn it this evening and let you know how it goes!
-
Sorry for the delayed reply, I’m struggling to figure out how to connect via SSH from my Windows computer to my Pi.
I’m going to keep trying and I’ll let you know once I have it figured out!
-
Good news! I figured out how to use SSH from my Windows PC!
Bad news! Unfortunately I get the same result.
Here’s what I see:
pi@raspberrypi:~ $ cd ~/MagicMirror/modules/MMM-GoogleAssistant pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run token > MMM-GoogleAssistant@4.0.7 token > installer/token.sh 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: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fassistant-sdk-prototype&prompt=consent&response_type=code&client_id=1056813255520-sj1d3k0tdht863dnibig9qjctgv5799s.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr Paste your code: Done. pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $
-
Hi,
In the question:Do you want to install/reinstall MMM-GoogleAssistant token? [Y/n] Your choice:
I think you type the letter
y
and [Enter]
Bah … don’t press [Enter] only typey
and it will works -
Hahaha! That was it! What a funny mistake I made.
Thanks so much for your help, and for giving me an excuse to learn about SSH!
-