nba_py icon indicating copy to clipboard operation
nba_py copied to clipboard

Getting connection error: 'Connection aborted.', error("(10060, 'WSAETIMEDOUT')",)

Open idohi opened this issue 6 years ago • 4 comments

Hi, When I try to retrieve data, for example data about the players, using the command: player.PlayerSummary(<player_id>).info() after few times of success I get the following error: raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error("(10060, 'WSAETIMEDOUT')",))

Please assist on this matter.

idohi avatar Nov 21 '18 09:11 idohi

same

luzer avatar Nov 22 '18 16:11 luzer

I got the same issue but was able to fix it after adding pauses between each request. I think the site stops you from requesting data from it after too many request in a short period of time.

larryworm1127 avatar Jul 07 '19 04:07 larryworm1127

@larryworm1127 For how long the pauses between each request? (I had tried it before but got inconsistent behavior, sometimes it worked and sometimes didn't).

idohi avatar Jul 07 '19 07:07 idohi

I usually just put around 0.5 to 1 sec interval between each request and it seems to work ok.

larryworm1127 avatar Jul 07 '19 16:07 larryworm1127