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

Most endpoints not working #153

Closed
mikethegeek-es opened this issue May 20, 2020 · 13 comments
Closed

Most endpoints not working #153

mikethegeek-es opened this issue May 20, 2020 · 13 comments
Labels
question Inquiry from community

Comments

@mikethegeek-es
Copy link

I can´t get response from most of the endpoints.

Some examples:

https://stats.nba.com/stats/playercareerstats?LeagueID=&PerMode=Totals&PlayerID=2544
https://stats.nba.com/stats/teamdetails?TeamID=1610612739
https://stats.nba.com/stats/franchiseplayers?LeagueID=00&PerMode=Totals&SeasonType=Regular+Season&TeamID=1610612739

have the endpoints changed?

@matthewosborne71
Copy link

Just want to add that I'm getting the same issue

@jtpavlock
Copy link

Is this still an issue? They are working for me.

@matthewosborne71
Copy link

matthewosborne71 commented Jul 20, 2020 via email

@JSKgetgit
Copy link

Still there is.
can anyone send the basic code .
I am newbi and I refer the other blogs which gave me errors.
the endpoints are blocked for me, they are not responding for me.

@JSKgetgit
Copy link

the error is read timedout!!!

@rsforbes
Copy link
Collaborator

rsforbes commented Aug 9, 2020

@JSKgetgit - Try the following in a sample.py file. It'll print a list of the days games.

from nba_api.stats.endpoints import Scoreboard
from nba_api.stats.library.parameters import LeagueID
from nba_api.stats.library.data import teams

#List the games of the day
date = datetime.datetime.now()

teams = dict((team[0],team[5]) for team in teams)

gamefinder = Scoreboard(league_id=LeagueID.nba,
                            day_offset=0,
                            game_date=date)

games_dict = gamefinder.get_normalized_dict()

for game in games_dict['GameHeader']:
    print(f"\t{teams[game['VISITOR_TEAM_ID']]} @ {teams[game['HOME_TEAM_ID']]} - ({game['GAME_STATUS_TEXT']})")```

@sword134
Copy link

sword134 commented Aug 9, 2020

It worked a few hours ago, I haven't changed my code and now I get timeouts...

@JSKgetgit
Copy link

Thank you sir for trying to help me.But the same error is still showing:
ReadTimeout: HTTPSConnectionPool(host='stats.nba.com', port=443): Read timed out. (read timeout=30)

@swar
Copy link
Owner

swar commented Aug 15, 2020

@JSKgetgit are you able to get stats to load visiting them via browser?

@cryobry
Copy link

cryobry commented Aug 15, 2020

I'm having the same problem with endpoints. Static endpoints (players.find_players_by_full_name) seem to be working OK, but (for example) playergamelog.PlayerGameLog is not working.

I cannot seem to access them through the browser either, on my local machine or on several of my remote VPS's.

@swar
Copy link
Owner

swar commented Aug 16, 2020

@cryobry This leads me to believe that your ISP is blocked from connecting to the stats endpoints. If these pages are not loading for you in browser, than that is most certainly the case.

@swar swar added the question Inquiry from community label Aug 16, 2020
@cryobry
Copy link

cryobry commented Aug 16, 2020

Could anyone confirm that the "working" url from leaguegamelog.md (https://stats.nba.com/stats/playergamelog?DateFrom=&DateTo=&LeagueID=&PlayerID=2544&Season=2019-20&SeasonType=Regular+Season) is actually working? I have tested via a home ISP in Florida, a home ISP in Oregon, an edu in Georgia, a VPS in the Netherlands, a VPS in Las Vegas, and a VPN in New York, all using Chromium and Firefox. It seems awfully strange that all of these would be blocked. I am getting a PR_IO_TIMEOUT_ERROR when trying to access the link with a web browser.

@swar
I think that this is playergamelog endpoint-specific problem. I can seem to access some of the other endpoints fine from any/all of my machines. I would say that maybe 1/3 of the endpoints are working and 2/3 are not. Is anyone else experiencing this?

@swar
Copy link
Owner

swar commented Aug 19, 2020

@cryobry I don't think I have been able to replicate this problem on my end. When you go to stats.nba.com, what pages do not load for you? I would assume those same endpoints will not load for you with the library.

Have you tried different browsers as well? Usually its all the endpoints that stop working when you are blocked and not some of them.

@swar swar closed this as completed Aug 19, 2020
@swar swar reopened this Aug 19, 2020
@rsforbes rsforbes closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Inquiry from community
Projects
None yet
Development

No branches or pull requests

8 participants