502 Bad Gateway Error Sometimes

This 502 is a Cloudflare error and shown before the origin has been contacted. Most likely.
So step 4 ist the right one.

Additionally:
If this persists and you checked your origin, follow this KB article, especially half way down in this page.

https://support.cloudflare.com/hc/en-us/articles/218378978-What-should-I-do-after-seeing-a-502-or-504-gateway-error-on-my-site-

1 Like