Introduction
A 502 Bad Gateway Error means that one server on the internet received an invalid response from another server. Essentially, the communication between servers has broken down. While it looks technical, it is often caused by a server taking too long to respond, a poorly designed plugin/theme sending too many requests, or an incorrect server configuration.
Problem
You will encounter this issue when:
Your website displays a "502 Bad Gateway" or "HTTP 502" page.
The backend of your WordPress site becomes inaccessible or extremely slow.
Specific plugin actions (like syncing products) fail to complete and return a 502 error.
How to solve
Follow these steps to troubleshoot and resolve the 502 error:
Perform a Hard Refresh: Sometimes the error is temporary. Clear your browser cache or perform a "hard" refresh (Mac: Command + Shift + R / Windows: Control + F5).
Increase PHP Time Limit: Your server might be cutting off requests too early. Increase your PHP time limit to allow processes more time to complete.
Update Plugins & Themes: Ensure everything is running on the latest version to prevent bugs or compatibility issues that could trigger server errors.
Check Firewall & CDN: If you use services like Cloudflare, temporarily disable them to see if they are blocking the connection. If the error disappears, contact your CDN provider.
Contact Your Hosting Provider: If the steps above don't work, the issue likely lies within the hosting server itself. Inform your host that you've already cleared your cache and checked your plugins.
Canβt figure it out? You can always send a message to the support team via the chat bubble at the bottom right π Support to the rescue π¨βπ» π©βπ»
