502 Bad Gateway (Cloudflare) when using WordPress REST API

By the way, the kind of 502 that is displayed: