Issue:- I have imported Public Postman collection of Orchestrator API and have created an Environment respective variables. But when I try to authenticate or run an API it throws an error.
Error:- There was an error in evaluating the Pre-request Script: undefined: undefined.
Please refer to the image below:-
Anything that I am missing?
Thank you,
Prashant
1 Like
Hello @Prashant_08
- For authentication-Headers enter logical tenant name
Authentication body-
{
âgrant_typeâ: ârefresh_tokenâ,
âclient_idâ: â{{clientId}}â,
ârefresh_tokenâ: â{{userKey}}â
}
you can fetch the client id, and user key from orchestrator API
you will get response as-
{
âaccess_tokenâ: âtokenâ,
âid_tokenâ: âkeyâ,
âscopeâ: âopenid profile email offline_accessâ,
âexpires_inâ: 86400,
âtoken_typeâ: âBearerâ
}
1 Like
Hi @Lipika_Porey,
Thank you for the suggestion.
Yes, indeed when we pass the corresponding details like a normal Request it works.
The issue is with this Collection Link:- UiPath Connector Guide
It does not work in a straight forward way. So while making the request it throws an error.
Hi Everyone,
I face the same issue after importing the uipath library in postman, everytime I tried to execute any api call I got the this error: âTypeError: Cannot read property âincludesâ of undefinedâ.
I was able to fix this by going to the Orchestrator Collection, then âright clickâ and click on [Edit collection], you will find a âPre-request Scriptâ tab. You need to delete that script, apparently, there is an error somewhere in that script, or you may need to configure that before trying to run API calls.
In any case, I just needed to run simple API calls so decided to delete the script, and everything starts! to work.
5 Likes