Addidng www DNS record does not work

Hi there,

Have a look at this giude to deal with 502 errors.

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

Apart from that, you may find an A record with the name www pointing to your account’s IP instead of the CNAME record. If there is an A record for www and it’s pointing to a different IP, remove it.