curl does not work in EC2 instance due to some limitation?

69 views Asked by At

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?

  1. Does AWS impose any rate limits?
  2. How can I determine the cause of unsuccessful HTTP requests?
  3. Why restarting server solve this issue temporary?
0

There are 0 answers