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: 'transfer_urls' Unable to login with Client.run() method #377

Closed
3 tasks done
pstryczke opened this issue Oct 19, 2023 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working steam is wonderful An issue with Steam wont-fix This will not be worked on

Comments

@pstryczke
Copy link
Contributor

Summary

Unable to login with client.Client.run() method

Reproduction Steps

Trying to login with vaild username and password using run(USERNAME, PASSWORD) method of client.Client instance.

Expected Results

Successful login after providing valid username and password

Actual Results

KeyError observed during executing run(USERNAME, PASSWORD) method:

Traceback (most recent call last):
  File "C:\user_mrpst\PycharmProjects\SteamPrices\steam_price_getter.py", line 265, in <module>
    temp.run(USERNAME, PASSWORD)
  File "C:\user_mrpst\PycharmProjects\SteamPrices\venv\Lib\site-packages\steam\client.py", line 372, in run
    asyncio.run(runner())
  File "C:\Python\Python3.11\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Python\Python3.11\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python\Python3.11\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\user_mrpst\PycharmProjects\SteamPrices\venv\Lib\site-packages\steam\client.py", line 363, in runner
    await self.start(*args, **kwargs)
  File "C:\user_mrpst\PycharmProjects\SteamPrices\venv\Lib\site-packages\steam\client.py", line 465, in start
    await self.login(username, password, shared_secret=shared_secret)
  File "C:\user_mrpst\PycharmProjects\SteamPrices\venv\Lib\site-packages\steam\client.py", line 403, in login
    await self.http.login(username, password, shared_secret=shared_secret)
  File "C:\user_mrpst\PycharmProjects\SteamPrices\venv\Lib\site-packages\steam\http.py", line 189, in login
    for url in resp["transfer_urls"]:
               ~~~~^^^^^^^^^^^^^^^^^
KeyError: 'transfer_urls'

Script was working fine few hours ago.

System Information

python version: 3.11.2
steam.py version: 0.9.9
aiohttp version: 3.8.4
betterproto version: 2.0.0b4
operating system info: Windows-10-10.0.19045-SP0

Checklist

  • I have searched the issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my username, password, shared/identity secrets and refresh/access tokens from display, if visible.
@pstryczke pstryczke added the bug Something isn't working label Oct 19, 2023
@Gobot1234 Gobot1234 added wont-fix This will not be worked on steam is wonderful An issue with Steam labels Oct 19, 2023
@Gobot1234
Copy link
Owner

Steam has removed the old methods of logging in you need to use V1. There's nothing I can really do here.

@Gobot1234 Gobot1234 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
@Gobot1234 Gobot1234 changed the title Unable to login with client.Client.run() method Unable to login withClient.run() method Oct 22, 2023
@Gobot1234 Gobot1234 pinned this issue Oct 22, 2023
@Gobot1234 Gobot1234 changed the title Unable to login withClient.run() method Unable to login with Client.run() method Oct 22, 2023
@Gobot1234 Gobot1234 changed the title Unable to login with Client.run() method Unable to login with Client.run() method KeyError: 'transfer_urls' Oct 22, 2023
@Gobot1234 Gobot1234 changed the title Unable to login with Client.run() method KeyError: 'transfer_urls' KeyError: 'transfer_urls' Unable to login with Client.run() method Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working steam is wonderful An issue with Steam wont-fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants