garmin-connect
garmin-connect copied to clipboard
Can not sign in
Hello, can you check if everything is okay? Since 3 days I can not login, im getting html/css error with:
""
I've this setup to run once a day and haven't had any issues. What you can check:
- Verify that you're using the correct password
- Try to login at https://connect.garmin.com/
- Make sure you're not hitting some rate limit by trying to login too frequently
- remove node_modules and do a
npm installin case there are some leftovers lurking - Try out the example in i new project without other dependencies
If you still have problems signing in just let me know and we'll try to figure it out.
Same error, I have tried with 2 different servers.
""Garmin Connect | Sign In""
I also can't sign in using the example README instructions. I get error:
$ node example.js myproject\node_modules\garmin-connect\dist\garmin\GarminConnect.js:58 throw new Error('Missing credentials'); ^
I looked at the code in GarminConnect.js and its because its expecting an object to be passed.
A temporary fix is this: add an object - new GarminConnect({});
const GCClient = new GarminConnect({});
await GCClient.login(email, pass);
const userInfo = await GCClient.getActivities();
console.log(userInfo);
@inspiraller if you don't have a garmin.config.json file defined in the root, you have to include the emial & pass in that as you stated.
class GarminConnect {
constructor(
credentials: GCCredentials | undefined = config,
domain: GarminDomain = 'garmin.com'
) {
```