Can a CloudFront invalidation contribute to a 502 Bad Gateway error?

Responsive Ad Header

Question

Grade: Education Subject: Support
Can a CloudFront invalidation contribute to a 502 Bad Gateway error?
Asked by:
68 Viewed 68 Answers

Answer (68)

Best Answer
(257)
Yes, a poorly timed or incorrectly executed CloudFront invalidation can cause a 502 error. If the invalidation process disrupts the origin server's ability to serve content, CloudFront will receive an incomplete or incorrect response, resulting in the 502.