P4RM
February 7, 2026, 10:51am
1
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?
CheeHaw
February 21, 2026, 5:45pm
3
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
Hello @Tan_Quoc_Bao_Nguyen ,
This error happens when the lab server reboots when you terraform apply. You could wait for a new lab session to clear those resources or they could be deleted manually from the AWS console. Thank you:
Select de-c4w4a1-connection-rds from AWS glue > connections and delete:
[C4W4A1_rds_connection]
Select de-c4w4a1-glue-role from IAM > Roles and delete and type the role name:
[C4W4A1_iam_glue_role]
CheeHaw
February 22, 2026, 2:19am
5
Hi, it’s now ok in the new lab session. Thank you.
2 Likes