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

I'm getting a runtime error when trying to add player on waiver list #49

Open
gameuser1982 opened this issue Jan 11, 2024 · 1 comment

Comments

@gameuser1982
Copy link

When I try to add a player on the waiver list (for example player ID 6574) using the add_and_drop_players function, it throws up an error saying FAB balance must be a whole number between $0 and $999999999.

File "C:\pybaseballbot\fantasy_test.py", line 38, in
team.add_and_drop_players(6574, 6404)
File "C:\pybaseballbot\pybaseballbot\Lib\site-packages\yahoo_fantasy_api\team.py", line 174, in add_and_drop_players
self.yhandler.post_transactions(self.league_id, xml)
File "C:\pybaseballbot\pybaseballbot\Lib\site-packages\yahoo_fantasy_api\yhandler.py", line 241, in post_transactions
return self.post("league/{}/transactions".format(league_id), xml)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\pybaseballbot\pybaseballbot\Lib\site-packages\yahoo_fantasy_api\yhandler.py", line 60, in post
raise RuntimeError(response.content)
RuntimeError: b'\n\n FAB balance must be a whole number betweed $0 and $999999999.\n \n'

How do I get around this?

@gameuser1982
Copy link
Author

So it looks like this wrapper doesn't support FAB bids? None of the documentation mentions how to input FAB bids

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

No branches or pull requests

1 participant