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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则