marazt / garmin-connect-client

GarminConnectClient is a library for communication with GarminConnect. It allows to list, download and upload Garmin activities. It is inspired by https://github.com/La0/garmin-uploader.
MIT License
12 stars 4 forks source link

I have issue with #3

Open mydim opened 3 years ago

mydim commented 3 years ago

Tried to run the code

` res = await this.httpClient.GetAsync(url);

        ValidateModernTicketUrlResponseMessage(res, $"Second auth step failed to produce success or expected 302: {res.StatusCode}.");

`

res {StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers: { Date: Sun, 14 Feb 2021 19:15:00 GMT Connection: keep-alive Cache-Control: no-store, must-revalidate, no-cache, max-age=0 Pragma: no-cache Set-Cookie: ADRUM_BTa=R:1083|g:ac047d3d-5346-478a-beb4-3299ea365f7b|n:garmin_869629ee-d273-481d-b5a4-f4b0a8c4d5a3; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure Set-Cookie: ADRUM_BTa=R:1083|g:bb981197-f6df-4d0a-8ba3-81812c2a85bf; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Set-Cookie: ADRUM_BTa=R:1083|g:bb981197-f6df-4d0a-8ba3-81812c2a85bf|n:garmin_869629ee-d273-481d-b5a4-f4b0a8c4d5a3; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Set-Cookie: SameSite=None; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Set-Cookie: SESSIONID=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly Set-Cookie: ADRUM_BTa=R:1083|g:ac047d3d-5346-478a-beb4-3299ea365f7b|n:garmin_869629ee-d273-481d-b5a4-f4b0a8c4d5a3; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure Set-Cookie: ADRUM_BTa=R:1083|g:600e79f9-0d01-47d3-8393-e337f7544374; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Set-Cookie: ADRUM_BTa=R:1083|g:600e79f9-0d01-47d3-8393-e337f7544374|n:garmin_869629ee-d273-481d-b5a4-f4b0a8c4d5a3; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Set-Cookie: SameSite=None; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Set-Cookie: ADRUM_BT1=R:1083|i:259057; Max-Age=30; Expires=Sun, 14-Feb-2021 19:15:30 GMT; Path=/; Secure Strict-Transport-Security: max-age=31536000 ; includeSubDomains X-Content-Type-Options: nosniff X-Frame-Options: DENY x-vcap-request-id: 635a8e82-6363-4a13-4d39-785d5bf25457 x-xss-protection: 1; mode=block CF-Cache-Status: DYNAMIC cf-request-id: 084390c91b0000140c41a4b000000001 Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Server: cloudflare CF-RAY: 62191d882e3a140c-SEA Content-Type: application/json; charset=UTF-8 Content-Length: 255 Expires: 0 }}

Any ideas how to fix this?

Banzzouille commented 3 years ago

I've got the exactly same error.. Is this package still works in 2021 ? Thank's ;)

Banzzouille commented 3 years ago

Finally, i used the original in python => https://github.com/La0/garmin-uploader