-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing cookie SESSONID #20
Comments
Hi @lmerhay ! Thanks for the report. I have the same error and it looks like Garmin has changed something in the way I log in. I'll look into it today to investigate. |
Hi Łukasz, not sure if that helps to track the issue, but I also get an error message from the web app (too many requests). So yeah, something may have changed on Garmin’s end.
From: Łukasz Świderski ***@***.***>
Sent: Tuesday, September 26, 2023 7:26 AM
To: lswiderski/mi-scale-exporter ***@***.***>
Cc: lmerhay ***@***.***>; Mention ***@***.***>
Subject: Re: [lswiderski/mi-scale-exporter] Missing cookie SESSONID (Issue #20)
Hi @lmerhay <https://github.com/lmerhay> !
Thanks for the report. I have the same error and it looks like Garmin has changed something in the way I log in. I'll look into it today to investigate.
—
Reply to this email directly, view it on GitHub <#20 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKE7CIPVPGMCLIUKD65FOOTX4JRN7ANCNFSM6AAAAAA5HCAZGE> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AKE7CINNXSSGLOZZIUUY4ATX4JRN7A5CNFSM6AAAAAA5HCAZGGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTHM66TQ.gif> Message ID: ***@***.*** ***@***.***> >
|
Status for today: My findings: the JWT Token can be obtained under |
I implemented a solution for this problem in related Python repositories:
Since I don't know much about this repo, I don't know what exact auth method is used, but I figure a similar solution could work. |
@SimonBaars Thanks! I will check for sure, although I can't use Garth directly because of the project language (c#) I will reimplement the same flow |
Status update: With library |
Progress update: |
Thanks! if you can provide the APK I could give it a try in Android. |
Ok I fixed the App. It works on an emulator and my phone. Package was sent to Google Play Store to check and certificate and should be available to update within 24h. .AAB and .APK installers are available here https://github.com/lswiderski/mi-scale-exporter/releases/tag/v2.0.8 @jesuslg123 Please check. Any confirmation or bug report is welcome. |
I don't have the scale now but I did try to upload the data from previous days and this morning and it is failing with 3 different errors, one after each attempt. Any idea? |
Thank you. I need to work on more detailed logs. Error about expected pattern means that Garmin somehow did not authenticated you. Do you have MFA/2FA turned off? What version of Android do you use? The weight did not uploaded in background? |
Thanks for the support. Something interesting happened. I did restart the phone and worked fine this time. May the Google play version kept running some service when I did remove to install the GitHub version? Now works uploading manually. Automatically with the scale I can not test right now, sorry |
Thank you. On Scale part nothing changed so should work fine. In near future I will add some retry policy to it because I can see it can don't work randomly. Anyway I'm happy We won with Garmin and connection is working Again. |
In my case, I was able to send weight alone. When other values are present, I'm getting the same message as @jesuslg123 on 2nd and 3rd screenshot. I tried resend like... 20 times. I'm persistent... :P |
Tbh I don't think this issue is resolved... :( |
@SirYaro Ohh I will investigate more |
@SirYaro I got the same error when I'm back to opened app. When I closed (kill) and opened again, stand on scale, get measurement and uploaded with success. |
For now I must be ok :/ In free time, I will rewrite the Garmin Connect part. But it will take some time. I wanted to release the fix asap even if it's not perfect. |
404 sounds as if it is trying to reach out to a URL unauthenticated. The new method only works for oauth2 authenticated endpoints, not for scraping webpages. |
@SimonBaars The problem was with the way of use of the Garmin client. Everytime when upload is done, method is trying to authenticate the user. On the second time, the auth headers was already there and the initial url was returning 404 (https://connect.garmin.com/modern/auth/hostname). Hotfixed it in 2.0.9 by clearing the headers of the http client. |
As I can see on version 2.0.9 I don't have that problems anymore, So I'm closing this issue. |
Hi, I have been using MiScale Exporter on Android for a while now, without any issues, however recently, whenever I am trying to upload data to Garmin, I get a "Missing cookie SESSIONID" message and the upload fails.
Is this a known issue? Can you pls let me know if you need any more specific info?
Thanks!
The text was updated successfully, but these errors were encountered: