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
can't login #5
Comments
It seems like it has something to do with the initial cookie. When I copy/paste a cookie that I get from Fedex.com into the login request in the program, it works. Maybe it's not passing along the cookie from the initial request? |
Got it. After "r1 = session.get(LOGIN_REFERER)" you need to make a POST request to https://www.fedex.com/_bm/_data (check the FedEx site to see the data it sends). After that, it works again. |
Unfortunately that value is timestamped and expires. I got it working by using Selenium to get the homepage to do its thing with all the cookies, then passing the cookies from Selenium to Requests. Not great, but worked. |
I made some attempts as well, but I think there's some Javascript setting cookies, which is why Selenium works. We should probably convert over to that approach (just like was done with |
home-assistant/core#13131 Need to use PhantomJS like is used for usps sensor. See happyleavesaoc/python-fedexdeliverymanager#5
Did something with authentication change again? I'm unable to log in.
The text was updated successfully, but these errors were encountered: