To fix a 502 Bad Gateway error, wait a few minutes and reload the page, then compare browsers and network connections if the error continues. A 502 means a gateway or proxy received an invalid response from an upstream server. If the service also fails for other visitors, report it to the website operator.
The short version
- Retry first: Wait a few minutes, check the address, and reload the page.
- Narrow it down: Compare another website and browser before changing settings.
- Follow the result: Investigate extensions and saved website data when the failure is specific to one browser.
- Escalate persistent errors: Send the website owner the failing URL, error text, approximate time, and results from another browser or network.
| Fix or check | When to use it |
|---|---|
| Wait, check the address, and reload | Your first attempt after a 502 |
| Reload Chrome without cached content | A normal desktop reload fails |
| Reload or restart Safari | The error appears in Safari on Mac |
| Compare websites and browsers | You need to identify the scope of the failure |
| Check the service status | You suspect a wider outage |
| Try another network | You can compare connections on iPhone or iPad |
| Try Chrome Incognito | The failure appears specific to Chrome desktop |
| Try Edge InPrivate | The failure appears specific to Edge desktop |
| Try Safari Private Browsing | The failure appears specific to Safari on Mac |
| Restart Chrome | Chrome on Windows or Mac keeps failing |
| Disable Chrome extensions | You suspect interference in Chrome desktop |
| Disable Edge extensions | You suspect interference in Edge desktop |
| Disable Safari extensions | You suspect interference in Safari on Mac |
| Use Firefox Troubleshoot Mode | You suspect desktop extensions or customizations |
| Clear Chrome desktop data | A Chrome desktop failure persists |
| Clear Chrome Android data | A Chrome Android failure persists |
| Clear Chrome iPhone or iPad data | A Chrome iPhone or iPad failure persists |
| Clear Firefox desktop data | A Firefox desktop failure persists |
| Clear Edge history and cache | An Edge desktop failure persists |
| Remove Safari data for one website | One website keeps failing in Safari on Mac |
| Clear Safari history and website data | A Safari iPhone or iPad failure persists |
| Update Chrome | Chrome browser checks have not resolved the error |
| Update Edge | Edge browser checks have not resolved the error |
| Update Firefox | Firefox browser checks have not resolved the error |
| Update Safari through system updates | Safari browser checks have not resolved the error |
| Restart the modem and router | The failure follows your home network |
| Flush the Windows DNS cache | Local name resolution contributes on Windows 11 |
| Review Android Private DNS | A custom DNS provider is failing |
| Contact the website owner or network support | The error persists after comparing access |
Wait briefly and reload the page
Give the website a few minutes, then reload it. In Chrome on a computer, check the address for typing or copying mistakes, then select Reload this page beside the address bar. On Windows or Linux, you can also press F5 or Ctrl + R.
If a normal reload fails, try a reload that ignores cached content in desktop Chrome. Press Shift + F5 or Ctrl + Shift + R on Windows or Linux, or Command + Shift + R on Mac. If the error remains, compare access in another browser.
For Safari on Mac, choose View > Reload Page, or press Command + R. Quit and reopen Safari if necessary, then try the website again.
Find out how widely the website is failing
Open another website in a new tab, then open the failing URL in another desktop browser. A failure confined to one browser points toward browser-specific troubleshooting. If the same URL fails across browsers, focus next on the website or network.
Check the affected service's own status page for an incident. For a Cloudflare-related failure, inspect Active incidents and Recent incidents on Cloudflare System Status. This helps you identify a wider incident before changing local settings.
On an iPhone or iPad with cellular capability and service, try loading the website using cellular data. If cellular data is unavailable, connect to another Wi-Fi network and retry. Note whether changing networks changes the result so you can include that detail when reporting the error.
If the service works for other visitors but keeps failing for you, investigate your local VPN, proxy, firewall, and DNS configuration. If it also fails for other visitors, report it to the website operator. Skip browser cleanup when the results point toward a wider website failure.
Try a private browser window
In desktop Chrome, select More > New Incognito window, then open the failing URL. You can also press Ctrl + Shift + N on Windows, Linux, or ChromeOS, or Command + Shift + N on Mac. If the page works there, investigate extensions and saved website data next. If management restricts Incognito, continue by comparing the URL in another browser.
For Microsoft Edge on a computer, select Settings and more > New InPrivate window and retry the URL. In Safari on Mac, choose File > New Private Window, or press Shift + Command + N, then open the website.
Restarting Chrome is another browser-specific check. On Windows, select More > Exit and reopen Chrome. On Mac, choose Chrome > Quit Google Chrome, then reopen it from Applications or the Dock.
Check extensions for interference
In desktop Chrome, select More > Extensions > Manage extensions. Turn the extensions off and retry the page. If it loads, turn them back on individually to identify which one causes the failure.
In desktop Edge, select Extensions > Manage extensions and turn off the relevant toggle before retrying. In Safari on Mac, choose Safari > Settings > Extensions, deselect each installed extension, and retry the page.
In desktop Firefox, Troubleshoot Mode… temporarily disables extensions and other customizations. Open the menu, choose Help and Report > Troubleshoot Mode…, then click Restart and Open. In supported layouts that use Help, open that submenu instead. Retry the website, then restart Firefox normally to restore the temporarily disabled features.
Clear cached files and website data
Deleting Chrome desktop cookies can sign you out of websites, and this cleanup also deletes cached images and files. Select More > Delete browsing data, choose All time, and select Cached images and files and Cookies and other site data. Leave unrelated categories unselected, select Delete data, and retry the website.
On Android, this Chrome cleanup deletes the selected cookies, site data, and cached files. Tap More > Delete browsing data > More options, then choose the relevant time range. Select Cookies and site data and Cached images and files, then tap Delete data.
On iPhone or iPad, this Chrome cleanup removes the selected cookies, site data, and cached files. Tap More > Delete Browsing Data, set Time Range, and tap Browsing Data. Select Cookies, Site Data and Cached Images and Files, tap Confirm, then tap Delete Browsing Data.
Firefox desktop cleanup deletes cookies, site data, and temporary cached files and pages. Open the menu, choose History > Clear recent history…, and set When: to Everything. Select Cookies and site data and Temporary cached files and pages, leave unrelated categories unselected, and click Clear.
The following Edge desktop cleanup deletes browsing history and cached images and files. Select Settings and more > History > Open history page > Delete browsing data. Set Time range to All time, select Browsing history and Cached images and files, then select Clear now.
Removing a website's Safari data on Mac deletes the stored data for that site. Choose Safari > Settings > Privacy > Manage Website Data, then select the affected website. Click Remove, click Done, and reopen the website.
Clearing Safari on iPhone or iPad deletes history and website data. On current layouts, open Settings > Apps > Safari > Clear History and Website Data, then tap Clear History. Retry the affected page after the cleanup; if the browser-specific failure continues, check for updates.
Update the affected browser
For Chrome on Windows or Mac, select More > Help > About Google Chrome and allow the update check to finish. Select Relaunch when offered, then retry the page. Linux distribution packages use their package manager, while ChromeOS updates Chrome through operating-system updates.
In desktop Edge, select Settings and more > Settings > About Microsoft Edge. Allow available updates to download, then select Restart when offered. Check the failing URL again afterward.
For desktop Firefox installed directly from Mozilla, open About Firefox through Help or Help and Report; on Mac, choose Firefox > About Firefox. Allow the update to download, then click Restart to update Firefox. Distribution-managed Linux packages update through their package manager.
To update Safari, install the operating-system updates offered for your supported Apple device. On iPhone or iPad, back up the device, connect it to power and Wi-Fi, then open Settings > General > Software Update. When an update is offered, tap Download and Install and complete the device prompts.
Investigate a network specific failure
When the failure follows your home network, restart the modem and router. Disconnect their power, wait at least 30 seconds, reconnect the modem and wait for it to be ready, then reconnect the router and wait before trying the website again. Follow the model-specific instructions for battery-backed equipment.
On Windows 11, consider flushing the DNS cache only when local name resolution contributes to the failure. This clears the local DNS cache. Open Command Prompt using Run as administrator, select Yes, then enter this command and press Enter:
ipconfig /flushdnsRetry the website after the command finishes. If the error continues across browsers and follows the same network, contact your internet provider or network support with those results.
On Android, review Private DNS if your custom provider is failing. Open Settings > Network & internet > Private DNS, select Automatic, then tap Save. Android vendors can use different settings layouts, so use your device's corresponding Private DNS controls.
Send the website owner useful details
Contact the website owner when the 502 persists, especially when another browser or network also fails. Include the failing URL, exact error text, approximate time, and whether another browser or network works. Those details help separate a website failure from a problem affecting your connection.
When the service works for other visitors, mention that result too. If the failure follows your network, take the same details to your internet provider or network support.
Frequently Asked Questions
Does a Cloudflare logo mean Cloudflare caused the 502?
Cloudflare says that, for the error-page patterns it describes, a branded 502 generally points to the website's origin server, while an unbranded error can originate at Cloudflare. If you own the affected site, ask your host to inspect server load, crashes, connectivity, and blocked or timed-out services.
Can iCloud Private Relay affect access to one website?
With iCloud+ Private Relay enabled, you can check Safari access by bypassing it for one website. This reveals your IP address for the check. On iPhone or iPad, tap Page Menu, then select Show IP Address; on Mac, choose View > Reload and Show IP Address, then retry.
Should you reset Chrome if only Chrome keeps failing?
Resetting Chrome is a later-stage option for a browser-specific failure on desktop. It resets extensions and several browsing settings, while saved bookmarks and passwords remain. Select More > Settings > Reset settings > Restore settings to their original defaults, then confirm by selecting Reset settings.
How do you report a website problem that happens only in Safari?
In Safari 26 or later on supported macOS, reload the page, then open Page Menu > Report a Website Issue. Describe the problem and click Report. This reports a compatibility problem rather than repairing the website's server.











