[Bug]: Connection issues with nba-api on AWS EC2 (Error 10054 / Timeout) #498
Labels
endpoint: third-party issue
Issues, unrelated to the library, that exists within the 3rd-party's API service.
NBA API Version
1.1.13
Issue
Hi,
I'm encountering a persistent issue when using the
nba-api
package on an AWS EC2 instance. The same script works perfectly on my local machine, but when running on EC2, it fails with the following errors:ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
ReadTimeoutError: HTTPSConnectionPool(host='stats.nba.com', port=443): Read timed out
Steps to Reproduce
Here's a minimal script to reproduce the issue:
Environment Details
Operating System: Windows Server 2019 (AWS EC2 instance)
Python Version: 3.7.9 (same as the local machine)
nba-api Version: 1.1.13
Troubleshooting Steps Tried
Configured the instance with an Elastic IP.
Ensured the security group allows outbound traffic on port 443.
Updated the system packages and Python libraries.
Tried setting custom headers and timeouts using NBAStatsHTTP.
I appreciate any help, thank you!
Marcus
Code
No response
The text was updated successfully, but these errors were encountered: