swar / nba_api

An API Client package to access the APIs for NBA.com
MIT License
2.43k stars 524 forks source link

ConnectionRefusedError: [WinError 10061], urllib3.exceptions.NewConnectionError, urllib3.exceptions.MaxRetryError, requests.exceptions.ProxyError #218

Open robert-loera opened 3 years ago

robert-loera commented 3 years ago

https://stackoverflow.com/questions/67751341/api-connectionrefusederror-winerror-10061-works-on-jupyter-not-pycharm

rsforbes commented 2 years ago

@robert-loera: Looked at your Stack Overflow question. I'm not certain why you are using a proxy on 127.0.0.1:80 which is your localhost unless you are attempting to somehow try to do something with the traffic. Can you expand your scenario and what proxy you are using? Happy to try to replicate.

cburnham4 commented 2 years ago

I had the same issue and just removed the custom_headers and proxy parameters. I believe the issue was following straight from https://github.com/swar/nba_api/blob/master/docs/nba_api/stats/examples.md which included those.