upstream connect error or disconnect/reset before headers. reset reason: protocol error

1

I have a service, and i want to call this service in aws throu CloudFront -> ALB -> ECS Service. This service fully functional in local environment, but only partly funcional in aws (there are endpoints that works fine). Unfortunately I have one endpoint that is not working in aws, I see that it gets called in the service it also returns 200, but from cloudfront, i get 502 with response body (upstream connect error or disconnect/reset before headers. reset reason: protocol error)

My configuration is: The ECSService is configured for service connect. ALB as origin for CloudFront is only HTTP.

The errored endpoint is a POST with request body and two request param, and it returns json object.

没有答案

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

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

回答问题的准则