Hello Experts,
After successfully executing the authentication REST command and getting a token, when I try to execute any REST command on https://platform.uipath.com I get redirected to GenericError.html. The text of the page is “500 <picture of a drunk robot> An unexpected error occurred” then a link to a login page.
I have tried this with SOAPUI, Postman, and copied the “curl” command from the Swagger page. (It works on the Swagger page.) But I get the same results.
Here is an example of what I am sending with “curl”. It copied the command from the working Swagger page, then changed the token header to an “Authorization” header.
curl -X GET --header ‘Accept: application/json’ --header ‘Authorization: Bearer: dee…wbQ’ ‘https://platform.uipath.com/odata/Robots’
Here is the response:
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href=“/GenericError.html?aspxerrorpath=/odata/Queues”>here</a>.</h2>
</body></html>
This is a simple call that should list the available robots. I am authenticated as “admin” so the error shouldn’t be caused by access control.
The error message doesn’t give me much to go on.
Any ideas as to what I am doing wrong?