When Accessing Insights an "Unknown Error" Message is Displayed

How to resolve when accessing Insights an "Unknown Error." message is displayed?

Issue Description : When accessing Insights a "Unknown Error." message is displayed.

 

Diagnosing/Resolution: 

  1. Login to the Orchestrator server
  2. Try navigating to https://InsightsURL/app/account/login
    • If navigating shows a certificate error (Usually it will say 'Not Secure') then this is the issue. Go to the section 'Adding Certificate Trust'
    • If this is encountered, it most likely means a Self-Signed certificate was used for the installation. Consider requesting a domain certificate from your admin to use with Insights. 
    • A Self-Signed certificate will always need to be manually trusted by end users, whereas a domain certificate should automatically be trusted.
    • After fixing the "Unknown Error" most likely users will next encounter "An error has occurred #101" message when navigating to Insights. This is because each end user will have to accept the certificate.
    • When Orchestrator does not trust the Insights certificate, it throws the message "Unknown Error", when a browser does not trust the certificate, the browser will throw the error "An error has occurred #101"
  3. If the certificate is trusted, do the following
    • Login to the Orchestrator website.
    • Navigate to Insights
    • After the "Unknown Error." message is thrown check the event viewer logs for errors from Orchestrator. (From the start menu Event Viewer->Windows Logs->Applications)
    • Looks for errors from the source 'Orchestrator' related to 'Sisense' (Ctrl+F and search for 'Sisense')
    • Address the issue based on the error. If the error message is not clear, raise the issue to UiPath Support.
  4. For untrusted certificates, the error message will be :
    • Error during AnalyticsLogin. UiPath.Orchestrator.Analytics.SiSense.SisenseHttpClientException: Sisense request https://insights:9443/api/v1/users/?email=admin%40defaulttenant.com failed with current execution policy
       ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
       ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

 

Adding Certificate Trust

  1. In the browser, click the “Not Secure” text. The location may vary depending on your browser, but all browsers give an option for viewing the certificate. The option is always in the URL navigation window. Look for “Not Secure” or “Certificate error” and click the text.
  2.  After clicking the text, there will be an option for viewing the certificate.
  3. In the Certificate Window, go to the Details tab and select “Copy to File…”
  4. Save the file to your desktop.
  5. Open the certificate that was saved to your desktop by double clicking it.
  6. In the windows that opens, select “Install Certificate…”
  7. Choose “Local Machine”
  8. Select “Place all certificates in the following store” and then click Browse…
  9. Choose “Trusted Root Certification Authorities”
  10. Click OK and then click next and install the certificate.