question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Login doesn't work after the steam chat update

See original GitHub issue

Since chat got updated by steam, it gives an error on chat._login while trying to login with .login . Here is the error:

Traceback (most recent call last):
  File "C:/Users/cagri/Desktop/py/trade.py", line 65, in <module>
    steam_client.login(steamusername, steampassword, "Steamguard.txt")
  File "C:\Users\cagri\Desktop\py\venv\lib\site-packages\steampy\client.py", line 44, in login
    self.chat._login()
  File "C:\Users\cagri\Desktop\py\venv\lib\site-packages\steampy\chat.py", line 38, in _login
    self._chat_params["access_token"] = self._get_access_token()
  File "C:\Users\cagri\Desktop\py\venv\lib\site-packages\steampy\chat.py", line 19, in _get_access_token
    access_token = token_pattern.search(str(elems[0])).group(1)
IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Phalelashvilicommented, Jul 7, 2018

any updates?

1reaction
alexmi1commented, Jun 21, 2018

The cause of this issue is steam chat got updated and steampy relies on extracting an access token from html, which is then used to interact with the chat via Steam’s Web API. I tried changing it so it correctly extracts the token. However those Web API methods are undocumented and they may have stopped working properly or been changed along with the update. It’s also possible I just did something wrong. Either way, I think doing it the way other steam libraries do it would be a better solution, not relying on the Web API for chat.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't sign in to the Steam Client - Steam Support
Log in to your Steam account to get help with your Steam games, contact Steam Support, request refunds, and more. Help is also...
Read more >
10 Ways to Fix Friends Chat Not Working on Steam - Saint
Log out of your Steam account and close the desktop app for a few seconds. After around 5 to 10 seconds, re-access your...
Read more >
Friends & Chat breaking my steam :: Help and Tips
Start Steam · Click on "Steam" in the top left, then "Settings" · In the "Account" tab click on "Change..." · In the...
Read more >
steam log in looks different and not let me log in any idea why
Valve employee found a solution that works for me. Go to date & time in settings and synchronize your clock then try logging...
Read more >
How To Fix Can't Sign In To Steam - YouTube
Do you need help with Steam ? In this video, we'll show the ... How To Fix Can't Sign In To Steam |...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found