[Solved] Token Problem [Google Server Problem]
-
@bugsounet I totaly agree this isnt a good fix but it was frustrating me because of the error.
Look forward to your updated tutorial and keep up the great work, respect -
First things to know …
- I have download the credentials sended by the registration device but it not works …
I inspect the sended json file, some part is missing (very strange… Google bug !?)
const oauthClient = new OAuth2Client(key.client_id, key.client_secret, key.redirect_uris[0]);
^
TypeError: Cannot read properties of undefined (reading ‘0’)redirect_uris is missing in credentials …
So I don’t use it !- So i Go to the console cloud
I try to download and test some available OAuth 2.0 file result the same OR error 400
Naturally … like wiki says … I have publish my app
That I have read on the message of Error 400: now google have to VALIDATE if you publish your app…
So i return to consent screen:
I unpublish my app and return to TEST mode
I have enter my email Adress for add me to beta testeur of this app
I download again the credential associated to the registred deviceI test … and works
Now I have publish the app and waiting… (if token will refresh ~7 jours waiting)
I don’t really know what google really want …
I will inspect more tomorow (maybe, it will be related with consoleactions) - I have download the credentials sended by the registration device but it not works …
-
Add your mail of your account
-
Hello and thank’s for all of your work, I was trying to get the token but I receive localhost conection rejected, can you tell me what im doing wrong?
I unpubished my project and also added my email for testing. -
Salut à tous
j’ai rentré le token GA sans problème.
mais j’ai une erreur code 409 sur npm run register.
request failed with status code 409.
et je n’arrive pas à trouver la solution , une aide ou une piste serait la bienvenue Merci d’avance -
Just remeber this:
** I don’t works in Google Compagny
** I’m just a user like you with a google account
** The developer of YOUR app in google console and google cloud is not me … it’s you
** I develop the code for use YOUR created app and device !
** I have can’t see what you have in your account
** Actually, I have old credentials (created in 3 year ago…)
** I’m not a magicien and I have NOT any reponse for this problem actually
** Like I says … I’m working arround
** bad thing is actually … repeat again , again, again the same thing …
** it’s really better to post Good thing like : I found … I make like this …Thanks for all (users)
-
@fikkiovarrikkio said in Token Problem:
And Naturally… that you don’t see …
- On the top of the blank web page
So the code is Between
code=
and&scope=
That i see, I can change the url.
I will make a web page for displaying this code in text for better copy pastLet me a couple of days for doing this … (If Google don’t change anything again…)
-
Yes Thank you very much, it worked for me, it asked me to paste the code and a request (the same code)
-
-
Don’t worry guy,
@2hdlockness and me will solve the problem
We are working arround.I do some test and it’s works with my account
So, @2hdlockness will make a new design (with google color) for the callback website code !
And I think, I will try to simplify the registration processI will create a new google account for testing…
I repeat again … I don’t work in google compagny, I’m a single user like YOU
So actually it’sdiscover mode
like you… but it take sense !Priority is number 1 and i Stop coding some other EXT
-
@NemDeFrance bro please how did you fix this error ?
/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/google-assistant/components/auth.js:26
const oauthClient = new OAuth2Client(key.client_id, key.client_secret, key.redirect_uris[0]); -
euh … @adem, if you don’t want to read … don’t post thx
In all case, I just update the new wiki for set up credentials.
I make a temp design, and waiting for @2hdlockness (don’t worry ! no stress !)Tell me, if it’s better now
-
I just see that credentials format have some change !
So I update some EXT (EXT-GooglePhotos, EXT-YouTube, EXT-YouTubeVLC)
Update of GA and his library for catching any error on create tokenAgain, I have just updated the Temp
Consent OAuth screen
for reading code of this couple of EXTCan you test and give me if working for you now ?
I want to solve this issue and return to HARD coding of new EXTThanks for your help (it’s for you !!!)
At now … token can’t be refreshed…
just updated (again…) to new googles rules ! (EXT: GA/ GP / YT), sorry about this -
Test in my dev platform new wiki and new update
Result:
- Creating new credentials from new wiki: ok
npm run token
- From MMM-GoogleAssistant: ok
- From EXT-YouTube: ok
- From EXT-YouTubeVLC: ok
- From EXT-GooglePhotos: ok
- Refresh token after 24h
- From MMM-GoogleAssistant : ok
- From EXT-YouTube: ok
- From EXT-YouTubeVLC: ok
- From EXT-GooglePhotos: ok
- Refresh token after 7 days: to determinate
Notes:
You need to update properly Each plugin/module ! (see wiki)MMM-GoogleAssistant: v4.0.2 with new npm library of @bugsounet/googleassistant v1.3.0
EXT-YouTube: v1.0.1
EXT-YouTubeVLC: v1.0.1
EXT-GooglePhotos: v1.0.0 with new npm library of @bugsounet/google-photos v1.0.4I will close this issue, for me all is corrected
-
-
-