Hi There,
i need a big help from you!!!
i have created a transient host which can be provide dynamic host and it is working fine.
the problem i am facing right is that when calling an external api, some of the api calls take more than 2 minutes and vro returning Read time out error immediately.
Below is my code snippet.
function makeTransientRestHost(hostname) {
var host;
try {
host = new RESTHost(hostname);
} catch (e) {
host = RESTHostManager.createHost(hostname);
host.operationTimeout = 900;
}
host.url = "https://" + hostname + "/lnragi/api";
var authParams = ['Shared Session', username, password];
var authObject = RESTAuthenticationManager.createAuthentication('Basic', authParams);
host.authentication = authObject;
var restHostMngr = RESTHostManager.createTransientHostFrom(host);
restHostMngr.operationTimeout = 900;
return restHostMngr;
};
am i doing anything wrong here?
Thanks in advance
Regards,
Laxmi
After some inernal discussions, it appears this is not a bug but more like a side effect from transient host implementation, where all such hosts share a common implementation and changing some property would affect all transient hosts.
Of course, it is arguable why there is no such shared configuration for all transient hosts, but this probably is different topic.
Hi,
Which version/build number of REST plug-in do you have installed?
Hi,
Version 1.1.1 Rest plugin for vRealize Orchestrator (vRO 6)
Version 2.2.2 Rest plugin for vRealize Orchestrator. (vRO 7 i.e vRA)
You're doing nothing wrong.
I was able to reproduce it in my vRO 7.4 environment. Looks like there is a bug with setting timeouts for transient REST hosts.
After some inernal discussions, it appears this is not a bug but more like a side effect from transient host implementation, where all such hosts share a common implementation and changing some property would affect all transient hosts.
Of course, it is arguable why there is no such shared configuration for all transient hosts, but this probably is different topic.
Thank you Ilian Iliev, i got it.