Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recent MyFitnessPal changes prevent this library from logging-in

See original GitHub issue

Issue Description

For an hour or so I’m unable to log in with the library due to an index error in the file. (I’m working on a Linux VM) I’m perfectly able to get inside the account from a mobile phone, website etc… even on the VM. I’ve found a similar previous issue but the suggestion (logging and accepting eventual popups) didn’t work.

File "/home/virtual/Desktop/updated_version/stable/data_handling_layer/", line 32, in handle_client client = mfp.Client(user_name, password) File "/home/virtual/.local/lib/python3.8/site-packages/myfitnesspal/", line 69, in __init__ self._login() File "/home/virtual/.local/lib/python3.8/site-packages/myfitnesspal/", line 104, in _login authenticity_token = document.xpath( IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

coddingtonbearcommented, Dec 17, 2021

Earlier today @hannahburkhardt submitted a patch that solved this; thanks for solving this for us, @hannahburkhardt!

coddingtonbearcommented, Dec 16, 2021

I spent an hour looking into this this evening, and I’m afraid to say that it looks like parts of the authentication flow have changed, and adapting the library to those changes doesn’t look like it’ll be trivial. I did give it a shot, though, and I’ve begun the work of updating things in the branch 128_fixing_for_upstream_mfp_changes, but it’s not likely I’ll find enough time to fix this in the coming weeks. Hopefully somebody in the community can find a little time to look into it faster than I’m able to!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known Issues: Website - MyFitnessPal Help
We will update this article as fixes for the issues listed here are released. Bug: Unable to scroll to see ingredient data when...
Read more >
MyFitnessPal review: It does everything but exercise for you
MyFitnessPal's been around for years, helping users track and modify their diet and exercise routines to reach their fitness goals.
Read more >
better, faster Calorie tracking. TOP 10 TIPS (2021) - YouTube
How to track your Calories better and faster in MyFitnessPal. These tips will help you use your macronutrient counting app more ...
Read more >
MyFitnessPal: Calorie Counter - Apps on Google Play
Track progress toward your nutrition, fitness, weight loss and water goals with MyFitnessPal. This all-in-one food tracker, calorie counter, ...
Read more >
Effectiveness of a smartphone application for weight loss ...
The app provides a database of over 3 million foods and an easy-to-use interface for logging food and exercise. Users enter their current...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found