brianzq / att-bill-splitter

Command-line tool for splitting AT&T phone bills among lines (Family Plan, Share Value Plan, etc.).
https://brianzq.me/projects/1
MIT License
51 stars 13 forks source link

Login failed #12

Open abhididdigi opened 6 years ago

abhididdigi commented 6 years ago

This was working ~3 months ago, and recently this stopped working. Right now, I always get Login Failed when I try to login with the username and password, and attached is the HTML that is rendered after the form is "post"ed.

Do you know what might be the issue? I'm on Mac OSX. at_t.txt

brianzq commented 6 years ago

might have something to do with the user agent. I'll take a look into this later tonight.

brianzq commented 6 years ago

As I cannot reproduce your error, I won't be able to test my solution. I think the problem is either your laptop or the user agent. So I suggest trying it on a different laptop, a linux box or another mac. If it's not possible, we could try use the fake-useragent package to dynamically generate a up-to-date user agent during runtime. Currently I hard coded the user agent here. To use the package, you need to:

  1. run pip install fake-useragent in your virtualenv to install the package.
  2. uncomment line 13 and 22 in main.py.
  3. reinstall the package and try it again. Let me know if you are not familiar with python packages or the above solution do not work. We can figure something out together.
abhididdigi commented 6 years ago

Hey - Thanks for looking into this issue. I did all 1, 2, and 3. I also installed them on Windows, MacOSX and Raspbian. Still have the same issue and it's taking me to the same HTML page that I attached ( I logged the response ); I'll continue to dig in and see what's going on.

brianzq commented 6 years ago

hmm. I just tried the latest version on my EC2 linux box and it works. do you want to join the slack channel (i just created one) and we can pair there? https://join.slack.com/t/att-bill-splitter/shared_invite/enQtMjk5Mzc4NTQ4ODY5LWRmMWQzYjM2MWFmYzE1NjY1N2MzOTkyZGJhNDMzNGJjOWFhNzI4OTRkZTg4MmM3YzY0YzMwODMxZTI4NGYzZDI