UiPath Cloud Swagger UI - You should be authenticated (sign in) in order to perform this operation

Hi All,

I am trying to use the swagger to create the API request but I am getting the error as

"message": "You are not authenticated!",
"details": "You should be authenticated (sign in) in order to perform this operation."

The url I am using is UiPath and also logged into the orchestrator. In one tab the orchestrator is opened and in the second the swagger is opened.

I’m looking for some suggestions on how to get rid of this issue.

Thanks in advance

2 Likes

Hi @Sanjit_Pal

Does it work when you append the swagger URL to the address in the same browser tab as your logged in Orchestrator to navigate to swagger this way?

Hi @loginerror,

I did not worked in that way as well.
Still showing you are not authenticated.

Thanks,
Sanjit Pal

1 Like

Hey @Sanjit_Pal

Is that the cloud orchestrator?

Thanks
#nK

Hi @Sanjit_Pal,

Can you show us the error screenshot of your issue?

Regards,
@90s_Developer

1 Like

Also, which API call are you trying to execute? Does it also fail for the simplest get request, such as this one?

Hi @loginerror,

As you can see in the below screenshot, am calling the simple api, but still getting that error.

Regards,
Sanjit

Does the same happen on different web browsers and/or network connection? Are there any errors in the Console or Network tab of the browser console?
(I think I’ve just realized it is a duplicate, is it also your account in this thread?)

The Solution is very simple.

  1. Click on Authorize in the right upper corner

  1. Logout

image

  1. Scroll down and press Authorize

  1. Close the page

image

  1. Go back to
https://cloud.uipath.com/ORG_NAME/TENANT_NAME/orchestrator_/swagger/index.html#/Folders/Folders_Get
  1. Try out

  2. Execute

Results:

Let us know if this helped.

1 Like

Hey @marian.platonov,

The authorize button is unlocked for me

In your screenshot if you notice that lock sign is locked.

I am not getting that logout as well which you have mentioned in the 2 point.

Thanks,
Sanjit

In this case, follow this:

image

Don’t change the client_id and leave the client_secret empty

Then click on Authorize

image

Then Close

Then retry the /odata/Folders

Let us know if this helped.

1 Like

Thanks @marian.platonov the issue is resolved.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.