HTTP Request to authenticate to Orchestrator - loginModel must not be null

Authentication is working when trying with swagger. But the same thing is not working in the HTTP Request activity. Getting the below response

Below are the connection details

Swagger Response:
image

Please suggest

You cannot login with username and password while using https://cloud.uipath.com

You will need to use client_credentials authentication.

Reference: https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/How-To-Make-Orchestrator-API-Requests-Using-HTTP-Request-Activities-or-Orchestrator-HTTP-Request?lang=en_US

I am using AutomationSuite connecting through vpn

Check that article that I mentioned and double check if the Orchestrator URL is correct.

Ensure that the body is passed as a single json file. Passing the parameters as separate variables is no more supported and would result in this error.

image

I will check once more. Thanks.
But this format is causing errors,
@“{ " + “\n” + @”““tenancyName””:““TENANT_NAME””, " + “\n” + @“”“usernameOrEmailAddress”“:”“USERNAME”“, " + “\n” + @”““password””:““PASSWORD”” " + “\n” + @“}”;

That format is for C# language projects.

For VB is different.

"{""tenancyName"":""TENANT_NAME"",""usernameOrEmailAddress"":""USERNAME"",""password"":""PASSWORD""}"
1 Like

Oh, ok! I will have to work on the format

Thank you. I will try this.

Thanks a lot! it works now

1 Like


image

Body:
“{”“tenancyName”“:”“TENANT_NAME”“,”“usernameOrEmailAddress”“:”“USERNAME”“,”“password”“:”“PASSWORD”“}”

Request URL:
Copied from the Swagger Response

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