how to fix ALB 502 error

0

ALB is giving me 502 errors randomly during the playwright test. When I debugged and checked ALB logs in Athena and I found elb_status_code is 502

Also access log entry says, the request_processing_time is 0.0, the target_processing_time is 0.005, and the response_processing_time is -1.

As per this AWS documentation: https://aws.amazon.com/premiumsupport/knowledge-center/elb-alb-troubleshoot-502-errors/

If the elb_status_code is "502" and the target_status_code is "-", then your load balancer is the source of the HTTP 502 errors

But I didn't understand a way to fix it. Can someone please help me with it?

1回答
0

What is your target? Have you tested the targets independent of the load balancer to ensure they are working fine? Also have you configured health checks on each of the targets?

profile pictureAWS
エキスパート
回答済み 2年前
  • Hey @Indranil, thanks for the help. My target is inside EKS. They are working fine normally but when I run the playwright test. Some of my tests are failing because of 502 errors.

    When I checked the ALB log I found elb_status_code is "502"

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ