09-04-2020 07:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-04-2020 07:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
09-04-2020 11:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-04-2020 11:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
09-05-2020 05:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-05-2020 05:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
That helped, thank you!

