Request failed with status code: java.net.ConnectException: Connection refused (Connection refused) when posting to https://amazonaws.com

developerservic
Kilo Contributor

Hi,

Getting following issue while establishing the connection with AWS.

Request failed with status code:  java.net.ConnectException: Connection refused (Connection refused) when posting to https://amazonaws.com

Can any one assist in this.

Thanks,

Venkat Gupta

1 REPLY 1

Brent Llewellyn
Mega Guru

Generally, a connection refused error means that the port you were trying to hit was not open. I would suggest validating the endpoint you are trying to hit is correct by looking at examples in the AWS api documentation.

 

Thanks,

Brent

 

If this helps please mark as helpful or correct so that others may benefit from this information as well.