rbarton65 / espnff

ESPN Fantasy Football API
253 stars 89 forks source link

issue with scoreboard #58

Open AndrewMcBrayer opened 5 years ago

AndrewMcBrayer commented 5 years ago

This is not an issue with your code but espnff is affected.

for some reason the scoreboard API just kind breaks when making requests for my league, for a specified matchup period, when making a request for data 2+ years old.

For example the Json get request --> http://games.espn.com/ffl/api/v2/scoreboard?leagueId=censored&seasonId=2015&matchupPeriodId=3

returns this -->{"error":[{"code":"exception","message":"java.lang.NullPointerException"}]}

If i request data for 2017 or 2018 I have no issues... Any idea whats going on here?

HeyParkerJ commented 5 years ago

Unfortunately yes, it's an issue with the ESPN API. It's loosely documented in the tests:

https://github.com/rbarton65/espnff/blob/master/tests/test_scoreboard.py