You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server.info() succeeds and returns proper data, but server.rules() throws the exception
Traceback (most recent call last):
File "/Users/andrew/.virtualenvs/python-valve-a2s/lib/python3.6/site-packages/valve/source/messages.py", line 91, in validate
raise ValueError
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "query_server.py", line 28, in <module>
info_dump = query_server(host, port)
File "query_server.py", line 20, in query_server
rules = server.rules()
File "/Users/andrew/.virtualenvs/python-valve-a2s/lib/python3.6/site-packages/valve/source/a2s.py", line 226, in rules
challenge = messages.GetChallengeResponse.decode(self.get_response())
File "/Users/andrew/.virtualenvs/python-valve-a2s/lib/python3.6/site-packages/valve/source/messages.py", line 415, in decode
values[field.name], buffer = field.decode(buffer, values)
File "/Users/andrew/.virtualenvs/python-valve-a2s/lib/python3.6/site-packages/valve/source/messages.py", line 41, in needs_buffer
return func(self, buffer, *args, **kwargs)
File "/Users/andrew/.virtualenvs/python-valve-a2s/lib/python3.6/site-packages/valve/source/messages.py", line 131, in decode
struct.unpack(self.format, field_data)[0]), left_overs)
File "/Users/andrew/.virtualenvs/python-valve-a2s/lib/python3.6/site-packages/valve/source/messages.py", line 95, in validate
value, self.name))
valve.source.messages.BrokenMessageError: Invalid value (69) for field 'response_type'
strangely, the same server responds fine using qstat and if I change the line on
then the rules field returns proper data. I don't know if this is a happy accident that I am getting proper data back, or if GetChallengeResponse should actually accept a wider range of inputs. Unfortunately I cannot share the server address, but hopefully this is enough to go off of
The text was updated successfully, but these errors were encountered:
andykais
added a commit
to agoragames/python-valve
that referenced
this issue
Mar 10, 2020
I havent dug into the purpose of response_types yet, but this package short circuits when a response type is given that it does not expect. We have an open issue with the package here serverstf#83. For now, this unblocks us with rocksteady
Hi, when I run the following snippet,
server.info()
succeeds and returns proper data, butserver.rules()
throws the exceptionstrangely, the same server responds fine using qstat and if I change the line on
python-valve/valve/source/messages.py
Line 476 in 6f2ca95
to be
then the rules field returns proper data. I don't know if this is a happy accident that I am getting proper data back, or if
GetChallengeResponse
should actually accept a wider range of inputs. Unfortunately I cannot share the server address, but hopefully this is enough to go off ofThe text was updated successfully, but these errors were encountered: