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"
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?API response: