Skip to content
MtrXTools

502 ERROR The request could not be satisfied. CloudFront wasn't able to connect to the origin.

CloudFront could not get a valid response from the origin

Seen in AWS CloudFront

CloudFront reached for the origin but couldn't complete a usable connection, most often a TLS problem between CloudFront and the origin.

Common causes

  • The origin's certificate is expired, self-signed, missing intermediates, or doesn't match the origin domain name.
  • Origin protocol policy or ports do not match what the origin listens on (e.g. HTTPS only to an HTTP-only origin).
  • The origin domain name does not resolve in public DNS.
  • The origin closed the connection or returned an invalid response.

How to fix it

  1. Test the origin hostname directly and fix its certificate and chain.
  2. Check the distribution's origin domain, protocol policy and HTTP/HTTPS ports.
  3. Confirm the origin domain resolves publicly.
Check the origin certificate

Got a different message? Paste it into the error explainer.

Related errors

All 51 HTTP & CDN errors