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

get_practice_lobby_list returns an error #53

Open
sercankd opened this issue Jul 9, 2020 · 2 comments
Open

get_practice_lobby_list returns an error #53

sercankd opened this issue Jul 9, 2020 · 2 comments
Labels

Comments

@sercankd
Copy link

sercankd commented Jul 9, 2020

Using get_practice_lobby_list returns an error

dota.get_practice_lobby_list(tournament_games=False, password='')

Traceback (most recent call last):
  File "src\\gevent\\greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run
  File "main.py", line 18, in get_imba_lobbies
    dota.get_practice_lobby_list(tournament_games=False, password='')
  File "C:\Users\sercankd\AppData\Local\Programs\Python\Python38-32\lib\site-packages\dota2\features\lobby.py", line 170, in get_practice_lobby_list
    jobid = self.send_job(EDOTAGCMsg.EMsgGCPracticeLobbyList,
  File "C:\Users\sercankd\AppData\Local\Programs\Python\Python38-32\lib\site-packages\dota2\client.py", line 166, in send_job
    self._send(*args, jobid=jobid, **kwargs)
  File "C:\Users\sercankd\AppData\Local\Programs\Python\Python38-32\lib\site-packages\dota2\client.py", line 213, in _send
    proto_fill_from_dict(message, data)
  File "C:\Users\sercankd\AppData\Local\Programs\Python\Python38-32\lib\site-packages\steam\utils\proto.py", line 86, in proto_fill_from_dict
    desc = field_descs[key]
KeyError: 'tournament_games'
2020-07-09T19:39:13Z <Greenlet at 0x52d1e80: get_imba_lobbies> failed with KeyError
@rossengeorgiev
Copy link
Member

Looks like similar issue as #52. That fields is not in the protos.

@sercankd
Copy link
Author

sercankd commented Jul 10, 2020

Removing
'tournament_games': tournament_games,

from

jobid = self.send_job(EDOTAGCMsg.EMsgGCPracticeLobbyList, resp = self.wait_msg(jobid, timeout=10) { 'tournament_games': tournament_games, 'pass_key': password, })

solved my problem but there is another thing, it is returning only 5 lobbies, i have also tried nodejs dota2 library but its also return 5 lobbies max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants