Pythe1337N / garmin-connect

Makes it simple to interface with Garmin Connect to get or set any data point.
MIT License
138 stars 58 forks source link

Can not sign in #41

Open Includes21 opened 1 year ago

Includes21 commented 1 year ago

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

"

"

Pythe1337N commented 1 year ago

I've this setup to run once a day and haven't had any issues. What you can check:

If you still have problems signing in just let me know and we'll try to figure it out.

Includes21 commented 1 year ago

Same error, I have tried with 2 different servers.

""Garmin Connect | Sign In""

inspiraller commented 1 year ago

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);
gregegan commented 6 months ago

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