Hello,
Thanks for reaching out to us. Error 502 and ETIMEOUT seems a issue due to DNS. 504 is reflecting internet connection issue. I will suggest you check your internet and DNS setting first then try below:
Restart your computer and networking equipment.
Clear your cache and cookies.
Change your DNS server.
Hope this helps.
Regards,
Yutong