jgillick / LendingClubAutoInvestor

A simple command line tool that will automatically invest all cash that becomes available
MIT License
47 stars 21 forks source link

"POST failed" error #23

Open eli88fine opened 10 years ago

eli88fine commented 10 years ago

Hello, lcinvestor had been working great since Bug #21 was fixed, but today I looked at my logs and it was showing this error:

///--------------------------- $$$ ---------------------------\ | Welcome to the unofficial Lending Club investment tool |


Authentication failed! POST failed to: https://www.lendingclub.com/account/login.action

I tried running it manually by just typing "lcinvestor", then entering my email and password, but the same error came up again.

Other programs I have running on my Raspberry Pi still seem to be able to download things from the internet, and I was able to SSH into my Pi to check on lcinvestor, so I don't think it's a problem with my internet connection. (and I can login through a regular browser to LendingClub)

Is this just something silly going wrong with my system or are other people experiencing this as well?

ghost commented 10 years ago

Was this the output with the --verbose flag? I'm still able to login on my system through the tool. Are you able to login manually through a browser? (if you have a monitor attached to your Pi, try from there)

eli88fine commented 10 years ago

yes, that was with the --verbose flag.
The error still occurs even when I try to log in manually just by typing "lcinvestor" at the command prompt. after I enter my user name and password the same error appears. I will try to connect a monitor to the Pi and confirm that I can login through a browser on the Pi. I can definitely login through a browser on my regular computer. thanks for your help

ghost commented 10 years ago

You can also try posting form the command line via curl to see if there is any problems coming from the network connection on the Pi:

curl -v --data "login_email=YOUR_EMAIL&login_password=YOUR_PASSWORD"  https://www.lendingclub.com/account/login.action

Replace YOUR_EMAIL and YOUR_PASSWORD with the actual values.

If it works you'll see a section output that looks like this:

* upload completely sent off: 56 out of 56 bytes
< HTTP/1.1 302 Found
< Cache-Control: no-cache, no-store, must-revalidate
< Date: Fri, 06 Jun 2014 23:38:56 GMT
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Location: https://www.lendingclub.com/account/summary.action

If your email or password are incorrect it'll return a bunch of HTML for the login page.

eli88fine commented 10 years ago

Hello, A few things: First, it is working again!

I tried doing the curl command, but it gave me the following error "-bash: _:event not found" where '_' was part of my password containing a special character (an exclamation mark). I changed my password so that it no longer had that special character and then it gave me some output that included what you had written up above.

Then, after changing my password, I tried typing "lcinvestor" at the command prompt just to check it out and after I typed in my username and password it worked! I haven't changed anything on my Pi, just my lending club password to not include the exclamation mark...

Now things seem to be working OK. I don't know if having a special character in the password and trying to pass that through the command line messes things up or not.....maybe someone with more knowledge of Unix would know......but I had that same password previously and it worked fine....I don't really know

ghost commented 10 years ago

Very interesting. It seems like my code might not be handling special characters in the password well. I'll look into this. Thanks!