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.

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions