Hi Jagan,
Please refer the below similar communication,
1. https://community.mendix.com/link/space/deployment/questions/140563
2. 502 bad gateway is caused by the server (webserver receives invalid response from another server) and you cannot fix it yourself. Try it again later, or contact Mendix Support.
other two check the detailed error caused by information.
Hope it Helps!
Thanks & Regards,
Manikandan K