Getting error while uploading artifact to nexus 3.12. Return code is: 502, ReasonPhrase:Server Hangup. -> [Help 1]

Getting error while uploading artifact to nexus 3.12.
Return code is: 502, ReasonPhrase:Server Hangup. -> [Help 1]

Likely this is your proxy server.

I am using same proxy server for Nexus 1.9 and nexus 3.12. but in case of nexus 1.9 it is working fine. facing issue in nexus 3.12 version.