AWS ECS Service Connect | Client receive error 400 status code

0

I'm attempting to use AWS ECS Service Connect for the first time, and I suspect I may have overlooked something simple.

Here's what I've done so far: I've created a cluster with several services, all within the same namespace. I've verified that each service has the appropriate service connect name (seen on the respective config tabs). Additionally, I've noticed that when I make calls to the services, the http headers show 'server:envoy'.

However, when a client service sends a request to its dependent service, the client receives a '400 Bad Request' error. After checking the client logs, I can confirm that the request is being sent to the correct URL as specified in the service configuration tab.

Any suggestions or insights on why I'm encountering this '400 Bad Request' issue would be greatly appreciated.

RPP
질문됨 8달 전108회 조회
1개 답변
0

Hi, usually 400 error are application level errors. So I think that you ECS Service Connect it's actually working correctly. My recommendation would be to login into one of the running container and try manually invoke some of the available API with "curl" to be sure that the ECS Service Connect configuration is actually correctly configured.

Using Amazon ECS Exec to access your containers on AWS Fargate and Amazon EC2: https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/

AWS
답변함 13일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠