1. Home
  2. Error Message
  3. Cloud Flare
  4. Error 502: Bad Gateway/Error 504: Gateway Timeout – Causes and Fixes

Error 502: Bad Gateway/Error 504: Gateway Timeout – Causes and Fixes

Causes

  • Cloudflare is unable to establish contact with your origin web server.

Fixes

A) From your origin web server

Step 1: Ensure Origin Server Responds To Requests

Ensure the origin server responds to requests for the hostname and domain within the visitor’s URL that generated the 502 or 504 error

Step 2: Investigate

Investigate excessive server loads, crashes, or network failures.

Step 3: Identify Applications Or Services

Identify applications or services that timed out or were blocked.

B) From Cloudflare

Step 1: Contact Cloudflare Customer Support

Provide the required details below to Cloudfare Customer Support:

  • Time and time zone the issue occurred.
  • URL that resulted in the HTTP 502 or 504 response (for example: https://www.example.com/images/icons/image1.png)
  • Output from browsing to www.example.com/cdn-cgi/trace (replace www.example.com with the domain and host name that caused the HTTP 502 or 504 error)
Updated on June 29, 2020

Was this article helpful?

Related Articles

Need Help?
Submit a ticket to us and let our professional team assists you

Support Billing Sales
Support
Billing
Sales