How to Tell Cloudflare Error 521 From Error 522
Cloudflare’s 521 and 522 suggest different connection failure patterns. Keep the exact code as the starting point and verify which backend was expected to answer.
Procedure
- Capture context. Record the affected hostname, error, time and Ray ID. Check whether all hostnames or just one origin behind a pool are affected.
- Compare refusal and timeout. For 521, inspect whether the intended service is running and accepting that connection. For 522, review connectivity, load and timing with the host for the authorized route.
- Check approved access. Review the scoped firewall and proxy allowlist against the provider’s documented requirements. Change only the agreed listener or rule when the evidence identifies the blocking layer.
- Confirm recovery. Retest the same public route and representative backends. Compare response timing and logs, and include the Ray ID when escalating a repeatable failure.
Related guides
- How to Troubleshoot 502, 503 and 504 Website Errors
- How to Diagnose Cloudflare Error 1016
- Website Troubleshooting articles
Official references
Ferkesh Hosting. Last reviewed .
Foi útil?
Obrigado pela sua opinião!