Bad gateway Error code 502 Visit for more information

Error 502 indicates an issue with the origin server, not Cloudflare. To resolve this issue, you should check the server logs and configurations on your origin server. If the issue persists, contact your hosting provider for further assistance.

I’d also recommend checking out the community tutorial on the topic: