Skip to content
  • There are no suggestions because the search field is empty.

WooCommerce - Common Errors

502 - Bad Gateway

You get a 502 Bad Gateway Error when the server fails to respond accurately and returns the request with invalid information. However, there are other possibilities; knowing them is crucial to troubleshooting this error effectively. This is typically due to a low-resource server (shared hosting or micro VM) expected to host a high volume of requests.

  • Your server is busy with other tasks or hit by traffic spikes
  • Origin servers are unresponsive or inaccessible
  • Errors in the database
  • Problem with the reverse proxy server
  • Corrupt PHP scripts in WordPress files
  • DNS issues

To troubleshoot and resolve the issue, you may need to look into each of these possible causes and take the appropriate action. This may involve working with your web hosting provider, disabling plugins or themes, checking your server logs, or consulting a WordPress developer or security expert.

If hosting is a related issue, we recommend upgrading your hosting or contacting your hosting provider to allot more resources.

Connection test: "Received an HTML page instead of a JSON API response"

Spark Shipping reached your site but got a web page back instead of the WooCommerce API. This is usually a security plugin, a CDN or firewall challenge (for example Cloudflare or Sucuri), or an incorrect store URL. Allow Spark Shipping through the security tool and check the URL on the Credentials page.

Connection test: "The API key may not have Read permissions"

The key was created without Read access. Regenerate it with Read/Write permissions in WooCommerce → Settings → Advanced → REST API. See How to Find Your WooCommerce API Credentials.

Connection test: "The Consumer Key or Consumer Secret may be incorrect"

Copy the Consumer Key and Consumer Secret again, or generate a new key, and paste them into Spark Shipping.

Connection test: "No response received" or another WooCommerce error

The site may be down, the URL may be wrong, or a firewall may be blocking the request. Make sure the URL matches your WooCommerce store exactly; try removing or adding the www prefix.