homerchen19 / nba-go

🏀 💻 The finest NBA CLI.
https://www.npmjs.com/package/nba-go
MIT License
3.71k stars 220 forks source link

NBA.getGames() goes wrong. #93

Open hehu321 opened 3 years ago

hehu321 commented 3 years ago

NBA.getGames() goes wrong.

lili21 commented 3 years ago

Similar issue

TypeError: Cannot read property 'sports_content' of undefined

Oops, NBA.getGamesFromDate() goes wrong.
Please run nba-go again.
If it still does not work, feel free to open an issue on https://github.com/xxhomey19/nba-go/issues
coolyoungdad commented 3 years ago

+1 - same error as the above

HeribertoKubuntu commented 3 years ago

Same error, help us!!!

lizzykerrigan commented 3 years ago

Seems like they've changed the API endpoint since about March - any date beyond the 16th of March 2020 either redirects to that day's scoreboard or returns a 404. http://data.nba.com/data/5s/json/cms/noseason/scoreboard/20200328/games.json

Wonder if someone could fork this or the nba-stats-client package and point it to the V2 endpoint? https://data.nba.net/prod/v2/20200830/scoreboard.json

EDIT: hmm, looking at it, I don't think it's as simple as changing the endpoints - they've removed a lot of the team data from the games JSON

kerimay commented 3 years ago

same here. would be glad if this issue can be solved, i want to use it

PtrckM commented 7 months ago

still not working using macOS 14.1 Sonoma image