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

[Bug] Server Error with get_user_games() #68

Open
whcarter3 opened this issue Feb 19, 2025 · 0 comments
Open

[Bug] Server Error with get_user_games() #68

whcarter3 opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@whcarter3
Copy link

Description of Issue

When trying to call the get_user_games() query Yahoo returns "Server Error". Is this on their end or is it something I'm doing wrong?

yq = YahooFantasySportsQuery(
    yahoo_consumer_key=os.getenv("YAHOO_CONSUMER_KEY"),
    yahoo_consumer_secret=os.getenv("YAHOO_CONSUMER_SECRET"),
    game_code="nfl",
    league_id="390.l.123456",
)
CONSUMER_KEY = os.getenv("YAHOO_CONSUMER_KEY")
CONSUMER_SECRET = os.getenv("YAHOO_CONSUMER_SECRET")


@router.get("/yahoo/leagues")
def fetch_yahoo_leagues():
    user_leagues = yq.get_user_games()
    return user_leagues

API response:

raise YahooFantasySportsDataNotFound(error_msg, url=response.url)
yfpy.exceptions.YahooFantasySportsDataNotFound: Attempt to retrieve data at URL https://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games;codes=nfl/?format=json failed with error: "Server Error"
@whcarter3 whcarter3 added the bug Something isn't working label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants