MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-gtasks errors: Error while trying to retrieve access token

    Scheduled Pinned Locked Moved Productivity
    5 Posts 2 Posters 3.7k Views 2 Watching
    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.
    • E Offline
      Esinem
      last edited by Esinem

      Re: MMM-gtasks - Google tasks for your mirror

      Problem loading tasks.
      Try running the mirror with node serveronly for extra info
      Follow the guide in the readme.md
      Have you downloaded your 'client_sectet.json'?
      Have you ran initialy with node serveronly and followed the link provided?
      

      I think my problems relates to my client_secret.json. In the installation guide it says “Download your client_secret.json file by following the guide linked below” except I couldn’t find any guide so just winged it. I assume what I did was incorrect as this is what I got:

      Ready to go! Please point your browser to: http://localhost:8080
      Whoops! There was an uncaught exception...
      TypeError: Cannot read property 'client_secret' of undefined
          at authorize (/home/pi/MagicMirror/modules/MMM-gtasks/GoogleTasks.js:34:51)
          at processClientSecrets (/home/pi/MagicMirror/modules/MMM-gtasks/GoogleTasks.js:112:19)
          at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:447:3)
      

      UPDATE:

      This what I get now:

      Error while trying to retrieve access token { Error: invalid_grant
      at Request._callback (/home/pi/MagicMirror/modules/MMM-gtasks/node_modules/google-auth-library/lib/transporters.js:81:15)
      at Request.self.callback (/home/pi/MagicMirror/modules/MMM-gtasks/node_modules/request/request.js:186:22)
      at emitTwo (events.js:106:13)
      at Request.emit (events.js:191:7)
      at Request. (/home/pi/MagicMirror/modules/MMM-gtasks/node_modules/request/request.js:1163:10)
      at emitOne (events.js:96:13)
      at Request.emit (events.js:188:7)
      at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-gtasks/node_modules/request/request.js:1085:12)
      at IncomingMessage.g (events.js:292:16)
      at emitNone (events.js:91:20) code: 400 }
      Token stored to ./modules/MMM-gtasks/gtasks_token.json

      Now, the screen appears but no error from my Tasks, just says Loading and seems stalled.

      Any help gratefully received. Assume you are explaining to Homer Simpson :-)

      E 1 Reply Last reply Reply Quote 0
      • E Offline
        Esinem @Esinem
        last edited by

        Anybody?

        1 Reply Last reply Reply Quote 0
        • N Offline
          ninjabreadman
          last edited by

          Hey @Esinem,

          In GoogleTasks.js:100 it has the following URL: https://developers.google.com/google-apps/tasks/quickstart/nodejs#step_1_turn_on_the_api_name

          Recommend you follow Step 1, that should yield your client_secret.json.

          Let us know how you fare.

          Problem with config or JavaScript? Copy/paste it into JSHint.
          Check out the detailed walkthroughs on install, config, modules, etc.

          E 2 Replies Last reply Reply Quote 0
          • E Offline
            Esinem @ninjabreadman
            last edited by

            @ninjabreadman Thanks a ton! Unfortunately, the instructions were referred to but not included in the installation instructions as far as I could see.

            1 Reply Last reply Reply Quote 0
            • E Offline
              Esinem @ninjabreadman
              last edited by

              @ninjabreadman Hmm, unfortunately, no change :-( I ran node serveronly but I couldn’t see any errors. Debug is true in config.js

              pi@raspberrypi:~ $ cd /home/pi/MagicMirror
              pi@raspberrypi:~/MagicMirror $ node serveronly
              Starting MagicMirror: v2.1.3
              Loading config …
              Loading module helpers …
              No helper found for module: alert.
              Initializing new module helper …
              Module helper loaded: updatenotification
              No helper found for module: clock.
              Initializing new module helper …
              Module helper loaded: calendar
              No helper found for module: compliments.
              No helper found for module: currentweather.
              Initializing new module helper …
              Module helper loaded: MMM-gtasks
              No helper found for module: weatherforecast.
              Initializing new module helper …
              Module helper loaded: newsfeed
              All module helpers loaded.
              Starting server on port 8080 …
              Server started …
              Connecting socket for: updatenotification
              Connecting socket for: calendar
              Starting node helper for: calendar
              Connecting socket for: MMM-gtasks
              Starting node helper for: MMM-gtasks
              Connecting socket for: newsfeed
              Starting module: newsfeed
              Sockets connected & modules started …

              Ready to go! Please point your browser to: http://localhost:8080

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy