ALB returned a 502 error and a 304 success at the same second

0

h2 2023-08-22T09:49:39.769104Z app/k8s-oemkanag-starpayw-84d94ac291/077702a2b1df445f 111.98.250.148:47482 10.1.76.67:31256 0.162 0.012 0.000 304 304 55 171 "GET https://xxxx.com/css/chunk-elementui.06c3b195.css HTTP/2.0" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 arn:aws:elasticloadbalancing:ap-northeast-1:275106820702:targetgroup/k8s-oemkanag-starpayw-0080a52f53/ca916ffb6efdabfa "Root=1-64e484b3-0d6e79e6707c47da4fc81b4a" "works-kanagawa.starboss.biz" "arn:aws:acm:ap-northeast-1:275106820702:certificate/7540d0e1-9286-4c5b-895a-df4341d5e3fe" 1 2023-08-22T09:49:39.594000Z "waf,forward" "-" "-" "10.1.76.67:31256" "304" "-" "-"

h2 2023-08-22T09:49:39.769241Z app/k8s-oemkanag-starpayw-84d94ac291/077702a2b1df445f 111.98.250.148:47482 10.1.76.67:31256 0.164 0.010 -1 502 - 53 594 "GET https://xxxx.com:443/js/chunk-434af739.6e08a082.js HTTP/2.0" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 arn:aws:elasticloadbalancing:ap-northeast-1:275106820702:targetgroup/k8s-oemkanag-starpayw-0080a52f53/ca916ffb6efdabfa "Root=1-64e484b3-275cdb41288514401b738397" "works-kanagawa.starboss.biz" "arn:aws:acm:ap-northeast-1:275106820702:certificate/7540d0e1-9286-4c5b-895a-df4341d5e3fe" 1 2023-08-22T09:49:39.595000Z "waf,forward" "-" "-" "10.1.76.67:31256" "-" "-" "-"

Why do I get a 502 error? Under what circumstances would I get a 502 code sandwiched between multiple 304 codes?

  • 304 is for a css file and the 502 is for a js file. Have you review if you can access both of those files in each of servers individually that the ALB is pointing towards?

    Also, Why are the urls different? On includes port 443 and the other doesn't.

Junz
asked 8 months ago35 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions