I was running a crawling script on an EC2 server, and while reviewing the logs, I noticed that HTTP requests were failing. To investigate the issue, I attempted to run a curl command, but encountered the following error:
$ curl google.com
$ curl 142.250.199.110
curl: (28) Failed to connect to google.com port 443 after 131448 ms: Couldn't connect to server
Subsequently, after restarting the EC2 server, the script started functioning normally again. (nslookup or dig are fine)
Could anyone help my questions?
- Does AWS impose any rate limits?
- How can I determine the cause of unsuccessful HTTP requests?
- Why restarting server solve this issue temporary?