Connection Issue with EC2 api Endpoint, lab id: advhlkkrrzma, C4W4Assignment1

I’m calling an HTTP API endpoint hosted on AWS EC2: request_start_date = “2020-01-01”

request_end_date = “2020-03-01”

sessions_response = requests.get(f’http://{API_ENDPOINT}/sessions?start_date={request_start_date}&end_date={request_end_date}')

print(sessions_response.status_code), and got the following error: ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’)) when checked into the EC2 instance I got the following error

Hi, @P4RM can you restart the lab and see if the error still persists?

Hi, I’m having the same issue, reboot for few rounds, also reboot the EC2 instances. Everything is still the same. Same error.

Hi @CheeHaw can you please try this solution and see if that helps

Hi, it’s now ok in the new lab session. Thank you.

2 Likes