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?

preguntada hace 4 años734 visualizaciones
3 Respuestas
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
respondido hace 4 años
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
respondido hace un año
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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas