bukson / steampy

A Steam trading library for python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to login into account: 'refresh_token'

OlegAlyeynikov opened this issue · comments

{"response":{"had_remote_interaction":false}}
Traceback (most recent call last):
File "/home/csfloat/csgo_float_parser/buy_item/draft.py", line 6, in
steam_client.login("stoveprofi13", "HX:Q3+7#EC'Ba_C", '/home/csfloat/csgo_float_parser/buy_item/buy_module/credentials/steam_guard.json')
File "/home/csfloat/csgo_float_parser/buy_item/.venv/lib/python3.10/site-packages/steampy/client.py", line 110, in login
LoginExecutor(self.username, self._password, self.steam_guard['shared_secret'], self._session).login()
File "/home/csfloat/csgo_float_parser/buy_item/.venv/lib/python3.10/site-packages/steampy/login.py", line 38, in login
self._update_steam_guard(login_response)
File "/home/csfloat/csgo_float_parser/buy_item/.venv/lib/python3.10/site-packages/steampy/login.py", line 134, in _update_steam_guard
self._pool_sessions_steam(client_id, request_id)
File "/home/csfloat/csgo_float_parser/buy_item/.venv/lib/python3.10/site-packages/steampy/login.py", line 142, in _pool_sessions_steam
self.refresh_token = response.json()['response']['refresh_token']
KeyError: 'refresh_token'

I searched the entire forum regarding this problem but did not find the answer for myself. I tried all the solutions presented on the forum but it didn't help. Maybe someone knows how to update this token? Maybe somehow you can do this manually and then substitute it and use it always? Or is it always updated? I would be grateful for any answer. My one account logs in fine, but the other one gets this error.

commented

Hello, check this #359
Same problem, and good solution