Symptoms
In some cases, you may receive the following error after enabling Cloudflare for your domain:
Failed to load resource: the server responded with a status of 522 ()
Description
According to the Cloudflare documentation, this issue happens when Cloudflare is not able to reach your server. You can find more details on that here:
Workaround
Often the easiest way to resolve this issue to make sure you have Cloudflare's IP address range allowed in your server's firewall, so ensure they do not get blocked for any reason. Cloudflare maintains of a list of IPs at the following link: