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
posta un mese fa118 visualizzazioni
2 Risposte
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
ESPERTO
con risposta un mese fa
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
con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande