Bugsounet Coding

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

    Solved Token problem

    Issues
    3
    9
    54
    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.
    • A
      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
      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=789002050763-j72fgo0hn8foe1r58qg4vh3e6op08lsp.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fgoogleassistant.bugsounet.fr
      Paste your code: 4/0AX4XfWh_633zXua6GFuFWpr71in7ehugl-n_5e-OG6rlc3ErfzBi0CcN0PzPnpTDd5qiLA
      (node:5801) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘data’ of undefined
      at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/@bugsounet/google-assistant/components/auth.js:95:63
      at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/google-auth-library/build/src/auth/oauth2client.js:108:89
      at processTicksAndRejections (internal/process/task_queues.js:95:5)
      (Use 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.

      1 Reply Last reply Reply Quote 0
      • A
        abhinavg21500 last edited by

        if anyone know so please try to resolve fast because i have to submit this project as major project in my university

        1 Reply Last reply Reply Quote 0
        • bigjojo
          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.

          1 Reply Last reply Reply Quote 1
          • A
            abhinavg21500 last edited by

            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

            1 Reply Last reply Reply Quote 0
            • bugsounet
              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

              1 Reply Last reply Reply Quote 0
              • A
                abhinavg21500 last edited by

                Ok i try and let you know

                1 Reply Last reply Reply Quote 0
                • A
                  abhinavg21500 last edited by

                  thank u bro its run now

                  1 Reply Last reply Reply Quote 0
                  • A
                    abhinavg21500 last edited by

                    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

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

                      Hi, I have not actually, sorry

                      1 Reply Last reply Reply Quote 0
                      • Topic has been marked as solved  bugsounet bugsounet 
                      • First post
                        Last post
                      Powered by NodeBB | @bugsounet ©2022