- Newest
- Most votes
- Most comments
The most common error causes for: - Connection was closed before we received a valid response from endpoint URL: ...
are the next ones:
- Network Connectivity issues
- Firewall block
- Packet filtering
- The remote API you called takes very long to respond or it is unreachable.
- Internet access issue in VPC etc
Basically, this type of issue usually happens when there is a network issue from the client side.
To get to the bottom of the problem I recommend you use the following commands in your CLI:
-
time telnet cloudformation.eu-central-1.amazonaws.com 443
This command, will tell you how much time does your server keeps the connection open while a query response is sent by cloudformation. -
netstat
The route print command will fetch us the route table on your instance which will give us an idea if there is anything on the instance blocking the subnet.
You can also perform a nslookup
or dig
on the endpoint to check if there are any DNS issues.
Finally, you can run the --debug
parameter in your CLI command that deploys CF to check the logs (Troubleshooting CLI errors).
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked 2 months ago
- Accepted Answerasked 9 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 6 days ago