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?

posta 4 anni fa734 visualizzazioni
3 Risposte
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
con risposta 4 anni fa
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
con risposta un anno fa
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande