Skip to content

[Bug] Server Error with get_user_games() #68

Description

@whcarter3

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions