Open KipFeher85 opened 3 years ago
I’ve seen this occasionally too. Retrying the command always seems to work though. It may be helpful to have retry logic built into the yahoo_fantasy_api to handle this.
Yeah its very strange. A lot of the time it seems that my lg.team_key()
is what triggers the error such as:
Traceback (most recent call last):
File "C:/Users/kipfe/PycharmProjects/FantasyBaseball/main.py", line 11, in <module>
tmK = lg.team_key()
File "C:\Users\kipfe\PycharmProjects\FantasyBaseball\venv\lib\site-packages\yahoo_fantasy_api\league.py", line 207, in team_key
t = objectpath.Tree(self.yhandler.get_teams_raw())
File "C:\Users\kipfe\PycharmProjects\FantasyBaseball\venv\lib\site-packages\yahoo_fantasy_api\yhandler.py", line 68, in get_teams_raw
return self.get("users;use_login=1/games/teams")
File "C:\Users\kipfe\PycharmProjects\FantasyBaseball\venv\lib\site-packages\yahoo_fantasy_api\yhandler.py", line 25, in get
raise RuntimeError(response.content)
RuntimeError: b'Request denied\r\n'](url)
Have you discovered if there is a rate limit? I don't know why I keep getting this error nor why I should be getting it. I do not believe it is a problem with my code since it does work as intended the majority of the time
Console log:
My league object: