sportsdataverse / hoopR

An R package to quickly obtain clean and tidy men's basketball play by play data.
http://hoopr.sportsdataverse.org/
Other
81 stars 17 forks source link

BUG: espn pbp, team, and player box scores are not working #97

Closed JayTheriault closed 1 year ago

JayTheriault commented 1 year ago

Describe the bug When I try to access the ESPN boxscores for a game, which has worked all season so far, it now returns an error that games dont exist, even for the example game_id 401256760 used in the documentation

To Reproduce

hoopR::espn_mbb_game_all(401256760) 2022-11-17 19:10:15: Invalid arguments or no play-by-play data for 401256760 available! 2022-11-17 19:10:15: Invalid arguments or no team box score data for 401256760 available! 2022-11-17 19:10:15: Invalid arguments or no player box score data for 401256760 available! Error in hoopR::espn_mbb_game_all(401256760) : object 'plays_df' not found

Expected behavior returns pbp, team, and player box score for a game

Desktop (please complete the following information):

aggieed97 commented 1 year ago

I'm seconding this. I noticed last night that I wasn't able to get pbp data for live games like I had been before. When the game was complete it was possible. But like @JayTheriault mentions, now I'm not getting any data from any game including one I just checked (Gonzaga-Texas from last night) a few hours ago that worked. I know last night I was able to go to the URL in the espn_mbb_pbp R code, and all the json data was there; might be something in there that is causing the issue?

saiemgilani commented 1 year ago

The ESPN has moved the college basketball endpoints to their core API for the season. I will push a permafix for this in the next day or two

willcrouch commented 1 year ago

Looks like this issue has returned.

https://www.espn.com/mens-college-basketball/boxscore/_/gameId/401025874

hoopR::espn_mbb_game_all(game_id = 401025874) 2023-02-15 11:11:06: Invalid arguments or no play-by-play data for 401025874 available! 2023-02-15 11:11:06: Invalid arguments or no team box score data for 401025874 available! 2023-02-15 11:11:06: Invalid arguments or no player box score data for 401025874 available!

hoopR::espn_mbb_team_box(game_id = 401025874) 2023-02-15 11:37:41: Invalid arguments or no team box score data for 401025874 available!