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

KeyError: 'refresh_token' #349

Closed
MaximF39 opened this issue Jan 24, 2024 · 1 comment
Closed

KeyError: 'refresh_token' #349

MaximF39 opened this issue Jan 24, 2024 · 1 comment

Comments

@MaximF39
Copy link

after fixing #343 (comment) I get an error when login(). Tell me how to solve it

Traceback (most recent call last):
  File "C:\Users\max\PycharmProjects\auto_reger_steam\send_trade.py", line 45, in <module>
    send_all_items(login, password, mafile_name, LOGIN_SECURE, STEAM_ID, TOKEN)
  File "C:\Users\max\PycharmProjects\auto_reger_steam\send_trade.py", line 30, in send_all_items
    steam_client.login(username, password, mafile)
  File "C:\Users\max\AppData\Local\Programs\Python\Python311\Lib\site-packages\steampy\client.py", line 110, in login
    LoginExecutor(self.username, self._password, self.steam_guard['shared_secret'], self._session).login()
  File "C:\Users\max\AppData\Local\Programs\Python\Python311\Lib\site-packages\steampy\login.py", line 38, in login
    self._update_steam_guard(login_response)
  File "C:\Users\max\AppData\Local\Programs\Python\Python311\Lib\site-packages\steampy\login.py", line 137, in _update_steam_guard
    self._pool_sessions_steam(client_id, request_id)
  File "C:\Users\max\AppData\Local\Programs\Python\Python311\Lib\site-packages\steampy\login.py", line 145, in _pool_sessions_steam
    self.refresh_token = response.json()['response']['refresh_token']
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'refresh_token'
response {'response': {'had_remote_interaction': False}}
@MaximF39
Copy link
Author

how cr

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

1 participant