Read the statement by Michael Teeuw here.
MMM-Strava ID Unauthorized
-
@mumblebaj he posted in discord
-
@mumblebaj Yes, I did:
-
@mumblebaj Any ideas here? Would really like to get this functional. Appreciate any help!
-
@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 theMMM-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.
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.
-
-
@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:
-
@mumblebaj I did attempt a reinstall of the MMM-Strava module but can certainly do it again. Is best method to rm-rf the MMM-Strava modiue folder and then redo the steps listed in the Github for MMM-Strava?
-
@BerkSmash1984 u can edit your posts… don’t have to leave pad text, wrong info, bad tag…
-
@sdetweil my bad, thanks! I corrected my post
-
@BerkSmash1984 not bad, maybe you didn’t know. lol
-
@mumblebaj just removed the MMM-Strava module and installed from scratch. Still seeing the same issue. Would you by chance be able to do any direct troubleshooting with me? I am on discord in the MM channel and can dm you in there, if you have any free time at any point.
Note: when I click the authorize button a the Stava auth site after being redirected there from my MM on the RPI, in Electron, I see this generated:
[03.05.2022 10:13.13.537] [ERROR] Whoops! There was an uncaught exception…
[03.05.2022 10:13.13.538] [ERROR] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:371:5)
at ServerResponse.setHeader (node:_http_outgoing:576:11)
at ServerResponse.header (/home/jberk1984/MagicMirror/node_modules/express/lib/response.js:776:10)
at ServerResponse.location (/home/jberk1984/MagicMirror/node_modules/express/lib/response.js:893:15)
at ServerResponse.redirect (/home/jberk1984/MagicMirror/node_modules/express/lib/response.js:931:18)
at /home/jberk1984/MagicMirror/modules/MMM-Strava/node_helper.js:185:10
at /home/jberk1984/MagicMirror/modules/MMM-Strava/node_helper.js:451:5
at node:fs:2122:7
at FSReqCallback.oncomplete (node:fs:188:23) {
code: ‘ERR_HTTP_HEADERS_SENT’So the issue seems to be whatever is causing that. I never do see the token.js being generated after clicking the authorize button. My client and secret ID are correct in my config.js file (can’t tell you how many times I have checked to make sure)