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
질문됨 한 달 전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
전문가
답변함 한 달 전
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
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠