Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

log in fails when trying to start Fitbit shell in command line

Hi,

I recently started working on my first fitbit watchface. I started with Fitbit Studio which worked okay but I'm now trying to switch to command line and VS Code. Everything went well until I got to the part where I should start the Fitbit shell with 'npx fitbit' command. Giving the command opens the log in window in the browser and results in "close your browser to continue" message. However, in the command line, all I get is this error message:

$ npx fitbit
No login information, starting login...
(node:70431) UnhandledPromiseRejectionWarning: Error: Fetch of 1/user/-/profile.json failed: no stored auth token
at Object.apiFetch (/Users/[myname]/koodaus/fitbit-clock/node_modules/@fitbit/sdk-cli/lib/api/baseAPI.js:28:15)
(node:70431) 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(). (rejection id: 1)
(node:70431) [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.

 Would appreciate any help in solving this, thanks.

Best Answer
0 Votes
2 REPLIES 2

Got same problem with @openid/appauth@1.3.0 upgraded recently.

Check which version you have.

 

If same, try to downgrade openid with command

npm install @openid/appauth@1.2.8

 

It helped me.

Best Answer

That helped, thank you!

Best Answer
0 Votes