garmin-connect icon indicating copy to clipboard operation
garmin-connect copied to clipboard

Can not sign in

Open Includes21 opened this issue 2 years ago • 4 comments

Hello, can you check if everything is okay? Since 3 days I can not login, im getting html/css error with:

""

Includes21 avatar Feb 07 '23 11:02 Includes21

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 install in 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.

Pythe1337N avatar Feb 08 '23 14:02 Pythe1337N

Same error, I have tried with 2 different servers.

""Garmin Connect | Sign In""

Includes21 avatar Feb 13 '23 18:02 Includes21

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 avatar May 08 '23 15:05 inspiraller

@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'
    ) {
    ```

gregegan avatar Dec 31 '23 08:12 gregegan