10-19-2023 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-19-2023 16:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I cloned my Fitbit projects on a new computer and immediately started having issues with NPM modules. The projects all complained about a missing "@molecular" package. I managed to get around the issue by installing molecular and then uninstalling it. My projects now build with no errors.
The issue I have now is that sometimes issuing a "bi" command will fail with errors. But eventually it will install on the OS Simulator. It might take one, two, or many attempts. There is no pattern to it.
Here are the errors. It's very temperamental.
[16:39:37][info][app] Building app for Fitbit Ionic
[16:39:37][info][app] Building app for Fitbit Versa
[16:39:37][info][app] Building app for Fitbit Versa Lite
[16:39:37][info][app] Building app for Fitbit Versa 2
[16:39:37][info][companion] Building companion
[16:39:37][info][settings] Building settings
[16:39:37][info][build] App UUID: 42aacc74-bac7-4ef9-ae37-a5f793008bab, BuildID: 0x09529651118a4255
No app package specified. Reloading ./build/app.fba.
Loaded appID:42aacc74-bac7-4ef9-ae37-a5f793008bab buildID:0x09529651118a4255
App requires a device, connecting...
Auto-connecting only known device: Versa 2 Simulator
Error: Fetch of https://api.fitbit.com/1/user/-/developer-relay/hosts/VERSA%202%20SIMULATOR returned status 500 Internal Server Error
at /Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/api/baseAPI.js:20:37
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async getConnectionURL (/Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/api/developerRelay.js:22:22)
at async Object.connect (/Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/api/developerRelay.js:36:17)
at async Function.connect (/Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/models/HostConnections.js:37:20)
at async HostConnections.connect (/Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/models/HostConnections.js:50:32)
at async Object.exports.connectAction (/Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/commands/connect.js:42:24)
at async Object.exports.installAction (/Users/ian/Development/node/fitbit/fitbit/sakio/node_modules/@fitbit/sdk-cli/lib/commands/install.js:42:24)
Answered! Go to the Best Answer.

Accepted Solutions
10-19-2023 21:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-19-2023 21:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Simply try running bi again.
It seems that the servers(incl. gam) were not working propery for the past week.
I hope this is a harbinger of new features...
10-19-2023 21:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-19-2023 21:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Simply try running bi again.
It seems that the servers(incl. gam) were not working propery for the past week.
I hope this is a harbinger of new features...
10-20-2023 09:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-20-2023 09:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
That seems like a reasonable answer. It's obvious that HTTP is involved with all of those 500 errors, and it was weird how it works eventually if I just keep bashing away. I'll give it some time and just deal with it. Thanks!

