Help with Error 502 Ray ID

Depends on which 502 error you are seeing. Have a look at this article for some guidance.

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