SSRS 2017 "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 502"

asked 2021-11-26T08:49:39.227+00:00
Usha Ghosh (Jonas C&R) 1 Reputation point

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 502"

Any guidance how to debug this error

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,093 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2021-11-26T09:27:18.76+00:00
    Isabellaz-1451 3,601 Reputation points

    Hi @Usha Ghosh (Jonas C&R) ,
    There are a handful of possibilities as to why the 502 error message is appearing on the website you’re trying to access.

    1. DNS changes
      During server migration, domains sometimes need changes in the Domain Name System (DNS), the communication link between domain names and IP addresses. This can take hours to become fully activated.
    2. The origin server isn’t working
      The server might be down, there might be a connectivity issue or there’s simply too much traffic.
    3. The server has failed
      This can, and does, happen whether it’s due to a crash or routine maintenance.
    4. The firewall is blocking the server transmission
      A firewall is in place to block transmission between servers and its main purpose is to provide protection. Sometimes, a firewall can mistake safe content for malicious content and stop the safe content in its tracks.

    For more infomations, please refer to this thread :https://www.allconnect.com/blog/502-bad-gateway-error-explained

    You can go into the folder\Microsoft SQL Server\<SQL Server Instance>\Reporting Services\LogFiles, to open the log file ReportServerService_<timestamp>.log which is created recently, verify the error message in it, you can use keyword ‘error’ or ‘exception’ to address the relevant error message.
    Hope this helps you.

    Best Regards,
    Isabella


    If the answer is the right solution, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.