Swagger UI - 401 You Are Not Authorized

How to resolve the error "An Unknown error has occurred. (#200)" when accessing Swagger for Automation Cloud or On-Premise Services?

Issue Description:
When navigating to swagger on the web browser for an Automation Cloud or On-Premise Service, users are getting "An Unknown error has occurred. (#200)" error on the UI and "401 You are not authorized!" error when Authorizing on Swagger.


Root Cause: Having large chunks of browser cache held on the browser.

Resolution:

  1. Navigate to "https://cloud.uipath.com/{organization_ID}/{tenant_name}/orchestrator_/swagger/index.html"
    • Note: Steps are similar if on On-Premise environment.
  2. Error 200 unauthorize. (An Unknown error has occurred. (#200)
  1. Delete the Browser cache
  2. Up on clearing the Cache, now navigate back to the Orchestrator
  3. Open a new tab and https://cloud.uipath.com/{organization_ID}/{tenant_name}/orchestrator_/swagger/index.html
  4. Make sure to check all the items as shown below.
  1. Clicked on Authorize as highlighted above
  2. Test for a status and the Get request should show the status as 200.



Contact UiPath Product Support: If issue persists, create UiPath Support Ticket for further troubleshooting.

Ensure to provide / attach the below list of details in ticket being created,

  1. HAR File
  2. If using On_Premise Setup, from the same machine, please share us the event viewer logs: ETVX Logs
  3. Try reaching the endpoint using Postman - How to Authenticate in UiPath Cloud Orchestrator in Postman and share the outcome with us.
  4. Confirm if there is a Proxy
  5. Are there any firewall rules that are getting block - check with your IT.