MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-Strava ID Unauthorized

    Health
    4
    17
    690
    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.
    • B
      BerkSmash1984 last edited by

      Hello, I am getting client id not authorized, despite having my client ID and client secret correct (from Strava API page). I also have the whitelist setup correctly and can access my MM from my local browser (the MM itself is on a RPI4). I receive the link within the magic mirror and am redirected to the authorization page on Strava, but after clicking authorize and restarting MM, I am still getting the same client ID not authorized. In looking in electron, I do so a ERR_HTTP_HEADERS_SENT error message…

      Any help would be greatly appreciated. Screenshots below:

      f2d444fd-61bc-4e7f-94b2-a180257188f8-image.png

      6a8425b1-0669-460f-b80d-6cfd48077641-image.png

      cca44401-cc57-4b1c-8e41-94ce37928e5d-image.png

      8ca1ea8d-e356-412f-9909-b93acbd67d3f-image.png

      620ffa34-3669-4241-ad07-4c6334324201-image.png

      B 1 Reply Last reply Reply Quote 0
      • B
        BerkSmash1984 @BerkSmash1984 last edited by

        @BerkSmash1984 Opening developer tools shows the following at this point in the authorization:

        0603115f-0d2a-4902-bb77-41a0be3d9002-image.png

        Note: I have my pihole disabled while testing, as it is also on this RPI

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @BerkSmash1984 last edited by

          @BerkSmash1984 if your MagicMirror config.js
          address:“0.0.0.0”

          change to the ip address of the pi

          address:“191.168.?.?”

          and try again

          Sam

          Create a working config
          How to add modules

          B 1 Reply Last reply Reply Quote 0
          • B
            BerkSmash1984 @sdetweil last edited by

            @sdetweil changed it
            b70d56bf-d220-4654-b02f-ad36643e0ecc-image.png

            No luck though. I see lots of errors with Dev tools from PiHole module if I change from 0.0.0.0 to the IP of the RPI4

            8a822a9f-58fc-440b-ba25-0f7f62e8d7d0-image.png

            mumblebaj 1 Reply Last reply Reply Quote 0
            • mumblebaj
              mumblebaj Project Sponsor @BerkSmash1984 last edited by mumblebaj

              @BerkSmash1984 Did you add your client_id and client_secret to the config,js?

              {
                                      module: "MMM-Strava",
                                      header: "My STRAVA Stats",
                                      position: "middle_center",
                                      config: {
                                                      client_id: "your_client_id",
                                                      client_secret: "your_client_secret"
                                                      activities: ["ride", "run", "swim"],
                                                      period: "all",
                                                      stats: ["count", "distance", "achievements"],
                                                      units: "metric",
                                                      updateInterval: 86400000,
                                                      reloadInterval: 86400000
              

              I am using address: “0.0.0.0” and I am not having any issues.

              S B 2 Replies Last reply Reply Quote 0
              • S
                sdetweil @mumblebaj last edited by

                @mumblebaj he posted in discord
                unknown.png

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • B
                  BerkSmash1984 @mumblebaj last edited by

                  @mumblebaj Yes, I did:
                  8a60dda2-8221-4bfd-98cf-052c31de2e72-image.png

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    BerkSmash1984 @BerkSmash1984 last edited by

                    @mumblebaj Any ideas here? Would really like to get this functional. Appreciate any help!

                    mumblebaj 1 Reply Last reply Reply Quote 0
                    • mumblebaj
                      mumblebaj Project Sponsor @BerkSmash1984 last edited by

                      @BerkSmash1984 Let’s trace all the required steps.

                      • Have run npm install in the MMM-Strava folder?

                      • Did you do the browser auth on the PI?

                      • Does the tokens.json file exist in the MMM-Strava folder and does it have the required information in it? This should be created once the authorization step has been completed from the Browser on the RPi and should be populated with some token and user information.
                        dd07e8e7-8255-4ea2-b9be-a44052607377-image.png

                      Other than checking that I am not sure what else you can check. Other than starting the process from scratch to re-install and re-auth I don’t know what else you can do.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        BerkSmash1984 @mumblebaj last edited by

                        @mumblebaj Thanks for the response.

                        • yes npm install was run the MMM-Strave folder
                        • yes I did the browser auth on the RPI as well
                        • no, I do not see a tokens file in the MMM-Strava folder after attempting the authorization:
                          90f6ba7f-f899-400e-9237-eecf527d394f-image.png
                        B 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy