Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to login into account: 'refresh_token' #377

Open
OlegAlyeynikov opened this issue Mar 8, 2024 · 1 comment
Open

Failed to login into account: 'refresh_token' #377

OlegAlyeynikov opened this issue Mar 8, 2024 · 1 comment

Comments

@OlegAlyeynikov
Copy link

{"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.

@kostrv
Copy link

kostrv commented Mar 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants