No target endpoints found for integration

3

I've been trying to set up API Gateway with CloudMap. I have configured a VPC Link and a CloudMap Namespace with one service pointing to one EC2 instance resource. Everything seems to be connected as required but I get an internal server error with the message "No target endpoints found for integration". There is no mention of this error anywhere in the documentation or elsewhere. Can anyone suggest what I might be doing wrong? Could it be something to do with the security group of the EC2?

已提問 4 年前檢視次數 734 次
3 個答案
2

Hi. I got the same error too. Did you include both the IPv4 address and Port in the Standard attributes for the service instances?
I got the error at first when I register the ip address only. It seems that API Gateway need both attributes.

The registered resources' attributes must include IP addresses and ports.
From https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-private.html#http-api-develop-integrations-private-Cloud-Map

reef
已回答 4 年前
0

Thanks, that link helped me. I'd registered my service in Service Discovery with an A record, but not a SRV record. I added an SRV record and it moved things on from 'No target endpoints found...'. (I now get 503 Service unavailable, but it's progress :-)

Chris L
已回答 1 年前
0

This worked for me as well. I was trying to setup my cluster in ECS using fargate. The service connect was working fine but requests were not reaching the services via http api gateway. After I added SRV records along with A records, both the connectivities started working fine. Thanks.

Mayank
已回答 1 年前

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

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

回答問題指南