Lambda Connection Issue

0

we are getting an error Error while making REST call. Retry: 0, Message: IOException: Connection reset by peer, StackTrace: [java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source), java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source), but some time it is giving 200 status

1개 답변
0

Hi there

The error "Connection reset by peer" implies that the Downstream Service (the one that the Lambda Function is making a call to) has abruptly aborted the connection in the midst of the connection. The "java.io.IOException: Connection reset by peer" is also a type of IO exception.

It is a response from the server that it is not going to process this request. When the application establishes a TCP connection with a peer in the network, if that peer closes the connection on the far end, it will throw "java.io.IOException: Connection reset by peer in Java".

The most common reasons for the "java.io.IOException: Connection reset by peer in Java" error:

  • The Downstream Service (the one that the Lambda Function is making a call to) has abruptly aborted the connection in the middle of a transaction.
  • The Downstream Service was unavailable.
  • There can be a problem with the PUT, POST, and GET requests.

The reasons are not limited to the above. Those errors need to be investigated from the perspective of the Downstream Service.

AWS
지원 엔지니어
TheLich
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠