Recent MyFitnessPal changes prevent this library from logging-in
See original GitHub issueIssue Description
For an hour or so I’m unable to log in with the library due to an index error in the client.py 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/__init__.py", line 32, in handle_client client = mfp.Client(user_name, password) File "/home/virtual/.local/lib/python3.8/site-packages/myfitnesspal/client.py", line 69, in __init__ self._login() File "/home/virtual/.local/lib/python3.8/site-packages/myfitnesspal/client.py", line 104, in _login authenticity_token = document.xpath( IndexError: list index out of range
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Earlier today @hannahburkhardt submitted a patch that solved this; thanks for solving this for us, @hannahburkhardt!
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!