Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved Authorization for request

    Issues
    9
    71
    261
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mecco86 last edited by

      Hello, when i ask to add somethings to my bring’s list, i look this screen message:
      “ serve la tua autorizzazione per poter accedere alle tue informazioni personali “
      In my phone i recived from assistant notication:
      “Consenti a Google di rispondere alle domande…… but i just alredy turn on personal information.
      Thanks for our help

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, just Register your project

        1 Reply Last reply Reply Quote 0
        • M
          mecco86 last edited by

          Hi, i’ve just register my projet.
          My projet is desktop not web

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            When I says register your project, it’s means register to Google home

            1 Reply Last reply Reply Quote 0
            • P
              Phil_Magic2 last edited by Phil_Magic2

              Hi Bugsounet, I have the same issue. Actully when you say : ‘‘register your project, to Google home’’, do you mean this value ‘‘deviceRegistred: true’’ in the config.js ? and or from the Google Cloud Console ?

              also, my configuration is MMM-GoogleAssitant V4 (up and running), Gateway, EXT-Detector, with Jarvis answering my vocal questions. But when I say : ‘‘Jarvis add a bottle of milk to my list’’, Jarvis answers in french, that I have to authorized my personnal information to my mobile phone’'. But my device is the magic Mirror where GA is installed. 🙂

              Many thanks to you

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by bugsounet

                wiki says This

                I you don’t register Jarvis app into Google Home app, you have your actual issue

                bugsounet 1 Reply Last reply Reply Quote 0
                • F
                  fanno80 last edited by bugsounet

                  jarvis registrato nell’app google home e anche con autorzzazioni dati personali continua a richiederle e mandare il messaggio pop up sul telefono

                  Edit: Please make an effort to write in English.
                  As you may know, I am French, I’m not Italian, thx for me (and us)
                  @bugsounet

                  1 Reply Last reply Reply Quote 0
                  • M
                    mecco86 last edited by

                    Fanno80’s same problem with authorization

                    1 Reply Last reply Reply Quote 0
                    • P
                      Phil_Magic2 last edited by

                      Hi again Bugsounet, I tried many times to register GA (in Google Home) with this command from directory …modules/MMM-GoogleAssistant : npm run register . Then I got the Code generated from the URL displayed in my browser. The code might change but each one of them gives : [GA] Error: Requet failed with status code 409. when applied …

                      Any help ?

                      1 Reply Last reply Reply Quote 0
                      • bugsounet
                        bugsounet Main Coder last edited by

                        and: npm run list
                        already registred ?

                        1 Reply Last reply Reply Quote 0
                        • P
                          Phil_Magic2 last edited by Phil_Magic2

                          when I do this command; it is requesting to enter the Code. the behaviour of the command npm run list is exactly the same as npm run register. With URL to get a Code and prompted : [GA] Paste your code:

                          1 Reply Last reply Reply Quote 0
                          • bugsounet
                            bugsounet Main Coder last edited by

                            and … after pasting code … ?

                            1 Reply Last reply Reply Quote 0
                            • P
                              Phil_Magic2 last edited by

                              Here is the command and respons :

                              pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run list

                              MMM-GoogleAssistant@4.0.4 list /home/pi/MagicMirror/modules/MMM-GoogleAssistant
                              node installer/list.js

                              ~MMM-GoogleAssistant v4~ Device List 
                              

                              [GA] Opening OAuth URL. Return here with your code.

                              [GA] 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&response_type=code&client_id=663651247229-l3pjgilbj70evbsm94nc1ucop95o7ple.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr

                              [GA] Paste your code: 4/0AX4XfWjGuwHJzbMECx2Ww4B6iL4dASFeybRWhtw3s4EYRwCCv6omLrm2CPp7pA9NSbgLxw
                              [GA] Error getting tokens: GaxiosError: invalid_grant
                              at Gaxios._request (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/gaxios/build/src/gaxios.js:129:23)
                              at processTicksAndRejections (internal/process/task_queues.js:95:5)
                              at async OAuth2Client.getTokenAsync (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-auth-library/build/src/auth/oauth2client.js:124:21) {
                              response: {
                              config: {
                              method: ‘POST’,
                              url: ‘https://oauth2.googleapis.com/token’,
                              data: ‘code=4%2F0AX4XfWjGuwHJzbMECx2Ww4B6iL4dASFeybRWhtw3s4EYRwCCv6omLrm2CPp7pA9NSbgLxw&client_id=663651247229-l3pjgilbj70evbsm94nc1ucop95o7ple.apps.googleusercontent.com&client_secret=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&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr&grant_type=authorization_code&code_verifier=’,
                              headers: [Object],
                              paramsSerializer: [Function: paramsSerializer],
                              body: ‘code=4%2F0AX4XfWjGuwHJzbMECx2Ww4B6iL4dASFeybRWhtw3s4EYRwCCv6omLrm2CPp7pA9NSbgLxw&client_id=663651247229-l3pjgilbj70evbsm94nc1ucop95o7ple.apps.googleusercontent.com&client_secret=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&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr&grant_type=authorization_code&code_verifier=’,
                              validateStatus: [Function: validateStatus],
                              responseType: ‘json’
                              },
                              data: { error: ‘invalid_grant’, error_description: ‘Bad Request’ },
                              headers: {
                              ‘alt-svc’: ‘h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000,h3-Q050=“:443”; ma=2592000,h3-Q046=“:443”; ma=2592000,h3-Q043=“:443”; ma=2592000,quic=“:443”; ma=2592000; v=“46,43”’,
                              ‘cache-control’: ‘no-cache, no-store, max-age=0, must-revalidate’,
                              connection: ‘close’,
                              ‘content-encoding’: ‘gzip’,
                              ‘content-type’: ‘application/json; charset=utf-8’,
                              date: ‘Thu, 14 Apr 2022 20:24:09 GMT’,
                              expires: ‘Mon, 01 Jan 1990 00:00:00 GMT’,
                              pragma: ‘no-cache’,
                              server: ‘scaffolding on HTTPServer2’,
                              ‘transfer-encoding’: ‘chunked’,
                              vary: ‘Origin, X-Origin, Referer’,
                              ‘x-content-type-options’: ‘nosniff’,
                              ‘x-frame-options’: ‘SAMEORIGIN’,
                              ‘x-xss-protection’: ‘0’
                              },
                              status: 400,
                              statusText: ‘Bad Request’,
                              request: { responseURL: ‘https://oauth2.googleapis.com/token’ }
                              },
                              config: {
                              method: ‘POST’,
                              url: ‘https://oauth2.googleapis.com/token’,
                              data: ‘code=4%2F0AX4XfWjGuwHJzbMECx2Ww4B6iL4dASFeybRWhtw3s4EYRwCCv6omLrm2CPp7pA9NSbgLxw&client_id=663651247229-l3pjgilbj70evbsm94nc1ucop95o7ple.apps.googleusercontent.com&client_secret=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&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr&grant_type=authorization_code&code_verifier=’,
                              headers: {
                              ‘Content-Type’: ‘application/x-www-form-urlencoded’,
                              ‘User-Agent’: ‘google-api-nodejs-client/7.14.1’,
                              ‘x-goog-api-client’: ‘gl-node/14.19.1 auth/7.14.1’,
                              Accept: ‘application/json’
                              },
                              paramsSerializer: [Function: paramsSerializer],
                              body: ‘code=4%2F0AX4XfWjGuwHJzbMECx2Ww4B6iL4dASFeybRWhtw3s4EYRwCCv6omLrm2CPp7pA9NSbgLxw&client_id=663651247229-l3pjgilbj70evbsm94nc1ucop95o7ple.apps.googleusercontent.com&client_secret=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&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr&grant_type=authorization_code&code_verifier=’,
                              validateStatus: [Function: validateStatus],
                              responseType: ‘json’
                              },
                              code: ‘400’
                              }
                              pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $

                              1 Reply Last reply Reply Quote 0
                              • bugsounet
                                bugsounet Main Coder last edited by

                                thanks to use this for pasting content:

                                that is see, invalid_grant do this.
                                I means you don’t have register correctly or you don’t authorize correctly some needed part on google OAuth screen

                                1 Reply Last reply Reply Quote 0
                                • P
                                  Phil_Magic2 last edited by Phil_Magic2

                                  Well, I do it again and now it’s OK . I do not know what was wrong but with generating once again ‘‘npm run list’’ then past the new generated code and now i got this 🙂 oufff !!!

                                  [GA] Device instance data: {
                                  devices: [
                                  {
                                  id: ‘MMM-GoogleAssistant’,
                                  nickname: ‘Jarvis’,
                                  name: ‘projects/mmbring/devices/MMM-GoogleAssistant’,
                                  modelId: ‘mmbring-bugsounet_GA’,
                                  clientType: ‘SDK_SERVICE’
                                  }
                                  ]
                                  }

                                  Thank you again

                                  1 Reply Last reply Reply Quote 0
                                  • bugsounet
                                    bugsounet Main Coder last edited by

                                    So it’s registred on google home app

                                    do you assign Jarvis to your house on Google Home app ?

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      Phil_Magic2 last edited by

                                      nop ! I don’t have any Google Home device except my Magic Mirror. Where shall I assign Jarvis on my Google Home App? Further more, I tried to call Jarvis and ask her to add a bottle of milk to my Bring list. She answerd : First of all, you have to authorise me to access to your personnal information. You can do this from your GA from your téléphone

                                      1 Reply Last reply Reply Quote 0
                                      • bugsounet
                                        bugsounet Main Coder last edited by

                                        launch Google home app on your phone
                                        you will discover Jarvis

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          Phil_Magic2 last edited by

                                          ok and then from it, I can activated and use my MM² instead of to pilot my bring list using Jarvis ? Still from my MM², not from my phone?

                                          1 Reply Last reply Reply Quote 0
                                          • bugsounet
                                            bugsounet Main Coder last edited by bugsounet

                                            If you don"t assign Jarvis on your google home app, you can’t activate personal search … so you can’t use EXT-Brings and vocal control
                                            (It’s not my rules… it’s Google Rules !)

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022