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
已提問 1 個月前檢視次數 118 次
2 個答案
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
專家
已回答 1 個月前
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
已回答 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南