While creating routing getting bad gateway error

While creating routing getting the 502 bad gateway response and getting the message
: “message”:“An invalid response was received from the upstream server”