Forum Stats

  • 3,734,237 Users
  • 2,246,918 Discussions
  • 7,857,196 Comments

Discussions

ORDS - 502 Web server received an invalid response

Datla Avinash Varma
Datla Avinash Varma Member Posts: 902 Bronze Trophy

We are using ORDS 20 deployed on a weblogic server (12c) and assigned a manager server as target. It is working fine as expected but very randomly for one of the endpoint in production we are getting below error and after sometime it works as expected. Not able to replicate the same error in lower instances

502 - Web server received an invalid response while acting as a gateway or proxy server.</h2>

There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

Verified weblogic adminserver and managed server log, don't see any errors.

same exact endpoint call with same query parameters working fine after sometime. verified backend ords query in database as well, result comes in less than 2 seconds.

How to debug and find the root cause. Could someone please help, if anyone has faced the similar issue.

Answers

  • Billy Verreynne
    Billy Verreynne Member Posts: 28,280 Red Diamond
    edited May 28, 2021 6:13AM

    Web proxy is used when your client is configured to use a web proxy (e.g. https://proxy.mydomain.com) for Internet access.

    You type https://oracle.com in the browser to access. The browser does not contact oracle.com directly. Instead it sends the URL requested to the web proxy server at https://proxy.mydomain.com.

    The web proxy gets the https://oracle.com request and issues it (contacts oracle.com) on behalf of the client. It receives the response from oracle.com and passes this back to the client.

    The 502 error is send to the client when the proxy server's request, to oracle.com in this example, fails.

    It seems at your weblogic server is acting as a proxy and contacting ORDS via a http call - and this is failing at times? Never used weblogic and have no idea how it is or can be configured.

Sign In or Register to comment.