Josh R
CDCloudflare Developers
•Created by Josh R on 12/26/2023 in #general-help
How to troubleshoot 522 errors
Hello,
I am getting 522s when connecting to my webserver using proxied A Records for my domain.
My setup:
Proxied A Record with Cloudflare points to my public IP. My router port-forwards to a Windows box on my home network.
Requests to https://{publicip}:port route properly, and all is good.
Requests through the proxied A Record fail with the 522. If I turn off proxying in cloudflare (so it's a regular A Record), everything routes properly. I have tested by turning off Windows Firewall, and I get the same result (522 if proxy is enabled, 200s if it's DNS only). I've read the
Requests to https://{publicip}:port route properly, and all is good.
Requests through the proxied A Record fail with the 522. If I turn off proxying in cloudflare (so it's a regular A Record), everything routes properly. I have tested by turning off Windows Firewall, and I get the same result (522 if proxy is enabled, 200s if it's DNS only). I've read the
Troubleshooting 5XX errors
page, and am confident that Cloudflare IPs aren't being blocked, and that there's no load or rate-limiting issues.
So, my question: How do I troubleshoot this further?9 replies