Fitbit / fitbit-sdk-toolchain

Toolchain for building Fitbit apps
https://dev.fitbit.com
BSD 3-Clause "New" or "Revised" License
52 stars 7 forks source link

Run npx-fitbit without machine ID #290

Open codingMASTER398 opened 2 years ago

codingMASTER398 commented 2 years ago

I'm running on a cloud server that doesn't have a machine ID in /etc/machine-id, and I cannot create one due to permission issues. When running npx fitbit, I get the following error:

Failed to read auth token from keychain: Error: Cannot spawn a message bus without a machine-id: Invalid machine ID in /nix/store/f5jhxrj5cxq2mnahwj4nba3sw4g5956c-glib-2.70.1/var/lib/dbus/machine-id or /etc/machine-id

I also can't make one in /nix/store/f5jhxrj5cxq2mnahwj4nba3sw4g5956c-glib-2.70.1/var/lib/dbus/machine-id, by the way.

Any way to do this without a valid machine ID?

Hexxeh commented 2 years ago

This looks like some internal requirement within the keytar library we use to store auth tokens in the keychain. Not sure of any easy way around it short of removing/replacing keytar.