Every HTTP requests to APIs created in API Gateway is returning back EOF: Error.Why?

0

I am sending few HTTP requests GET/POST/DELETE to few APIs created in AWS API Gateway. I am getting EOF:Error and it's not triggering the logs as well.For example below is some log statements from the Lambda which is triggering these HTTP requests;

Get "https://cj41dl5igj.execute-api.ap-southeast-1.amazonaws.com/v1/IntegrationServices/Application/GetMessageThread/150FA9C6-D6F1-4EEC-9B8F-41FE753F8ECE?SystemClient=6d9320a0-da2a-4802-ba15-4f49842ed7a3": EOF

Get "https://cj41dl5igj.execute-api.ap-southeast-1.amazonaws.com/v1/IntegrationServices/Application/GetMessageThread/150FA9C6-D6F1-4EEC-9B8F-41FE753F8ECE?SystemClient=6d9320a0-da2a-4802-ba15-4f49842ed7a3": EOF: Error null

END RequestId: ec3194b2-e680-441f-9152-5936f309d737 REPORT RequestId: ec3194b2-e680-441f-9152-5936f309d737 Duration: 19.45 ms Billed Duration: 20 ms Memory Size: 512 MB Max Memory Used: 29 MB Init Duration: 91.66 ms

Get "https://cj41dl5igj.execute-api.ap-southeast-1.amazonaws.com/v1/IntegrationServices/Application/GetMessageThread/150FA9C6-D6F1-4EEC-9B8F-41FE753F8ECE?SystemClient=6d9320a0-da2a-4802-ba15-4f49842ed7a3": EOF

1 個回答
1

What is the backend for your APIs? Have you tested the backend directly (without going through API Gateway) and do they work fine? If your backend is a lambda function and it gives you the same error when run directly, then try increasing the memory allocated to the lambda function

If the backend endpoints all work fine, then I would test locally from the API Gateway AWS console next.

profile pictureAWS
專家
已回答 2 年前
  • Well backend is .NET WebServices and it's working fine. These HTTP calls I am making from Lambda to API Gateway resource endpoints.If I directly test on API Gateway AWS console,that also correctly working.I am getting error only when I am trying to make HTTP calls from Lambda to API Gateway resource endpoints.Another thing I would like to highlight,Lambda is developed in GoLang.

  • I did some search on the net and found this article - http://bindersfullofcode.com/2019/02/16/golang-lambda-reuse.html

    This may be the issue you are running into because of the way Go implements HTTP connections.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南