Open Requestedd opened 7 months ago
Correction: Now this code seems to be working, the session is fine again. But it is unclear why the code was not operational for 2 days.
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\steampy\client.py", line 318, in make_offer if response.get('needs_mobile_confirmation'): ^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'
my knowledge is not enough to understand why status_code: 401
I am also facing this problem but there is a point where I am not able to get the market data. I've tried using cookie authentication and steamguard data authentication but there is no difference, I always get bad results and get an empty dictionary. In the case of using a session cookie, the is_session_alive() function returned true, but when I did the same thing, but using Steamguard, I got a false result.
I checked the steamguard codes, everything is fine with them, they are exactly the same as in other programs and everything works in them. I compared the post sent in the browser and the post in request module. There are no external changes, but something is wrong and the post sessionid is not accepted.
client.py
def _get_session_id(self) -> str:
return self._session.cookies.get_dict("steamcommunity.com")['sessionid']
def _get_session_id(self) -> str: return self._session.cookies.get_dict()("steamcommunity.com")['sessionid']
I tried this but encountered incompatibility. I dont think what it is actualy an issue place, at least in my case, my get_dict() method returns the correct values
I misspelled the parentheses. fix it client.py
def _get_session_id(self) -> str:
return self._session.cookies.get_dict("steamcommunity.com")['sessionid']
Good afternoon!
I used the following code to log in to the steam:
I also realized that steam had updated something , and changed the value in steampy/login.py :
It helped me and worked for a while. But yesterday the session stopped being saved again.
Can you share your opinion? Is the authorization working and is the session saved? If so, what code are you using?