bramton / degiro

Very basic unofficial Python API for DeGiro
BSD 3-Clause "New" or "Revised" License
52 stars 16 forks source link

login error #11

Open yironglo opened 4 years ago

yironglo commented 4 years ago

Hi, thanks for sharing this API! I'm a total tech newbie and have no experience with integrating API's, but I figured I wanted to try this one out. So after running the code, I get stuck at login. It says status code: 405. The code stops running at the set cookie line.

What does this mean and how do I fix it?

bramton commented 4 years ago

Could you provide some more details ? For instance what login method are you using ?

yironglo commented 4 years ago

I'm using the command line login. I fill in my username and password on the screen. I don't have the 2FA enabled, so i leave that empty. The error code I get is 500 (wrote that wrong in my previous message). The code stops running at the section of 'get session id'.

pgoslatara commented 4 years ago

@bramton Line 30 of degiro.py should be changed to: r = self.sess.post(url, data=payload) With that, la.getConfig() throws a 401 error I can't figure out.

@yironglo Did you get anywhere with this?

yironglo commented 4 years ago

@SilageTime Thanks! I now get a status code 200 and the session ID printed. But after that, nothing happens. The program exits with no error.