Resolving "An unknown error has occurred. (#200)" When Authorizing Swagger API in Automation Cloud

How to fix "An unknown error has occurred. (#200)" when attempting to authorize API calls through the Swagger interface in Automation Cloud?

Issue description:

When attempting to authorize API calls through the Swagger interface in Automation Cloud, users may encounter the following error message:

An unknown error has occurred. (#200)

Cause:

This error commonly occurs due to an incorrect URL configuration when accessing the Swagger page.

Resolution:

To resolve this issue, ensure that you are accessing the Swagger UI using the correct URL format. The proper format is:

https://cloud.uipath.com/{organization_name}/{tenant_name}/orchestrator_/swagger

Replace {organization_name} and {tenant_name} with your actual UiPath Cloud organization and tenant names, respectively.

Example:

If your organization name is AcmeCorp and your tenant name is DefaultTenant, the correct URL would be:

https://cloud.uipath.com/AcmeCorp/DefaultTenant/orchestrator_/swagger

Additional Resources:

For step-by-step guidance on how to authorize and use API calls via Swagger, please refer to our official documentation on Swagger and API Authorization.