ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.1k stars 137 forks source link

Invalid response header in GameServers data #356

Closed Kein closed 3 years ago

Kein commented 3 years ago

Using the example code form docs:

from steam import game_servers as gs

for server_addr in gs.query_master(r'\appid\550', max_servers=10):
    print(gs.a2s_info(server_addr))
Traceback (most recent call last):
  File "1.py", line 4, in <module>
    print(gs.a2s_info(server_addr))
  File "C:\Programs\Python385\lib\site-packages\steam\game_servers.py", line 363, in a2s_info
    raise RuntimeError("Invalid reponse header - %s" % repr(header))
RuntimeError: Invalid reponse header - b'A'

Is py module outdated?

Gobot1234 commented 3 years ago

This should be fixed on master which you can install using

pip install -U "steam @ git+https://github.com/ValvePython/steam@master"
Kein commented 3 years ago

Yeah, I figured. Would be nice if pip module/package was updated