I got 502 error from my cloudfront server.

0

I'm using a Cloudfront server and the origin server is ec2. And route 53 and SSL from AWS. I'm calling an API like httsp://domain.com/my-api-point and working fine 200+ but not working 300+. I got a 502 error like below. 502 ERROR The request could not be satisfied. The origin closed the connection. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

How to fix this error? Is there anything that I missed? Thank you.

Pablo
asked 20 days ago99 views
2 Answers
0

A 502 error typically indicates that CloudFront is unable to establish a connection with the origin server (in this case, your EC2 instance) to retrieve the requested content. This can occur due to various reasons, including network issues, misconfiguration, or problems with the origin server itself. Could you please follow this for the resolution :- https://repost.aws/knowledge-center/cloudfront-502-errors

profile picture
EXPERT
answered 20 days ago
0

Thank you for your answer. I've checked the above resolution but everything is okay with the resolution.

  1. Domain is working fine with dig or talent etc.
  2. SSL is used from AWS Certificate Manager and working fine.
  3. dig ORIGIN_DOMAIN_NAME working fine.
  4. there is no function for my server.
Pablo
answered 19 days ago

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