All my sites are intermittent in different regions, randomly. Disabling Proxy in DNS completely solves the problem when connecting directly. If you enable proxying, some of the addresses work, some of them timeout. The situation also gets a bit better when DEV MODE is enabled. With DEV MODE turned off I get timeouts again. I used tshark to log connections to the server and when the connection is successful, I see the Cloudflare IP, but when I get a timeout - I don’t see new logs. This suggests that the request is not even reaching the server. I’ve also tried deleting or disabling the cache in Cloudflare - it doesn’t solve the problem.
522s are returned when we time out contacting your origin, so you’ll need to check if:
Cloudflare IP addresses are rate limited or blocked in .htaccess, iptables, or firewalls. Confirm your hosting provider allows Cloudflare IP addresses (most common cause).
An overloaded or offline origin web server drops incoming requests.
The origin IP address in your Cloudflare DNS app does not match the IP address currently provisioned to your origin web server by your hosting provider.