Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 404 Not Found #114

Open
adgarcis opened this issue Mar 21, 2024 · 1 comment
Open

Error: 404 Not Found #114

adgarcis opened this issue Mar 21, 2024 · 1 comment

Comments

@adgarcis
Copy link

Hello, good morning.
Since yesterday when I try to access the method: NBA.stats.scoreboard({ LeagueID: "00", DayOffset: "0", gameDate: today}); it returns a 404 error. From what I've been looking at, it seems that the official NBA endpoint doesn't currently exist. How can I obtain this information now?

Best regards, and thank you.

@adgarcis
Copy link
Author

adgarcis commented Mar 21, 2024

I have found the solution. Is in package nba-client-template. You need to change in the file nba.json:165

from this:

{
      "name": "scoreboard",
      "url": "http://stats.nba.com/stats/scoreboard",
      "parameters": [
        "LeagueID",
        "DayOffset",
        "gameDate"
      ]
    },

to this:

{
      "name": "scoreboard",
      "url": "http://stats.nba.com/stats/scoreboardv2",
      "parameters": [
        "LeagueID",
        "DayOffset",
        "gameDate"
      ]
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant