The proxy server received an invalid response from an upstream server
Hi ,
I have a service deployed in AEM 6.1 which takes two params. i) fromDate ii) toDate. This services queries repository to find assets modified between fromDate & toDate , do some processing on data and returns xml DOM object as response . I have a JSP page where I am rendering response from this service in data table. If service response data (e.g 50 -200 assets ) then it works fine without any issue. However , if I have more no of data (>1000 assets) and if takes more time to process that data then I am getting 504 Error with following message
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET <Request URL>
Reason: Error reading from remote server
I am not using any proxy server / Web Server . I am hitting request directly to AEM host.
Did anybody faced it before ? any pointers/help would be appreciated?