steampy icon indicating copy to clipboard operation
steampy copied to clipboard

Failed to login into account: 'refresh_token'

Open OlegAlyeynikov opened this issue 1 year ago • 1 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.

OlegAlyeynikov avatar Mar 08 '24 19:03 OlegAlyeynikov

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

kostrv avatar Mar 15 '24 17:03 kostrv