API Gateway integration random status 500

0

Hello

We're experiencing random errors 500 in the calls to our API for which we cannot figure out the source. The same request would more or less fail one out of each five times with this error: {"message": "Internal server error"}

In the logs we can see that everything is fine, the ECS container even handles the request properly but in the API Gateway logs we find this line:
Thu Nov 14 10:46:04 UTC 2019 : Execution failed due to configuration error: Not a valid protocol version: {}HTTP/1.1 204 No Content

We have the following setup:
API Gateway --> VPC Link --> NLB --> TargetGroup --> ECS

Querying directly the ECS service or the NLB as mentioned before works as expected, the responses are always the same expected result.

Is there anything we should take into account when integration API Gateway through a VPC link? I couldn't find any entry anywhere for the error "Not a valid protocol version" nor any hints on how to debug it.

Thanks!

Edited by: catchoom on Nov 14, 2019 3:38 AM

gefragt vor 4 Jahren894 Aufrufe
1 Antwort
0

In the end, we solved the issue by placing an HTTP Proxy between the NLB and an ALB, which routes the requests to the desired ECS containers by hostname.

API Gateway --> VPC Link --> NLB --> NGINX --> ALB TargetGroup --> ECS

beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen