If you trust this link, click it to continue.
https://windowsreport.com/how-to-fix-minecraft-realms-502-bad-gateway-error/