You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloaded the latest code from the repo, seems like it's having issues getting the session cookie, this had also happened in the previous revision occasionally, but now it seems to be persistent.
trading212 = Trading212(email, password, driver, mode=Mode.DEMO, trading=Trading.CFD)
File "C:\Python310\lib\site-packages\pytrading212\trading212.py", line 115, in init
"Cookie": self.cookie,
AttributeError: 'Trading212' object has no attribute 'cookie'
The text was updated successfully, but these errors were encountered:
I just tested the code and it seems to be working, try to see the content of the cookie.
if cookie['name'] == self.session: self.cookie = f"{self.session}={cookie['value']};"
the error is related to this line of code, unfortunately there is no session name entry in your cookies.
Also try to see the value of self.session .
Downloaded the latest code from the repo, seems like it's having issues getting the session cookie, this had also happened in the previous revision occasionally, but now it seems to be persistent.
trading212 = Trading212(email, password, driver, mode=Mode.DEMO, trading=Trading.CFD)
File "C:\Python310\lib\site-packages\pytrading212\trading212.py", line 115, in init
"Cookie": self.cookie,
AttributeError: 'Trading212' object has no attribute 'cookie'
The text was updated successfully, but these errors were encountered: