VMware Cloud Community
LaxmiRagi
Enthusiast
Enthusiast
Jump to solution

VRO: Read timeout error

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

Tags (1)
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

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.

View solution in original post

6 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

Which version/build number of REST plug-in do you have installed?

0 Kudos
LaxmiRagi
Enthusiast
Enthusiast
Jump to solution

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)

0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

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.

0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

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.

LaxmiRagi
Enthusiast
Enthusiast
Jump to solution

Thank you Ilian Iliev, i got it.

0 Kudos
barrettpatrick
Contributor
Contributor
Jump to solution

Do you happen to know where I can find documentation that tells me how to change that shared configuration (for operation/connection timeouts) for all transient host implementations?
- Patrick
0 Kudos