VMware {code} Community
vkmech98
Contributor
Contributor

Getting: <urlopen error timed out>

Hi Memebers,

I am using a VMware SDK and getting the below error while making api call to fetch VM performance data.

Error: <urlopen error timed out>

 

Below the code snippet I am using and  getting the exception in the try block and e="Error: <urlopen error timed out>"

try:
            uuid = vm_mo.getCurrentProperty("config.instanceUuid")
except Exception as e:
            #some loggers here

===================================================================
def getCurrentProperty(self, pName):
		propertyValue = None

		objContent = self.retrieveObjectProperties([pName])
		if objContent!=None:
			dynaProps = objContent.propSet
			if dynaProps != None and len(dynaProps)>0:
				propertyValue = self._convert(dynaProps[0])

		return propertyValue 

 Any help will really appreciated .

Thanks in advance!!

Labels (1)
0 Kudos
2 Replies
vkmech98
Contributor
Contributor

Can someone please provide any insights on this?

0 Kudos
Denis_Chorbadzh
VMware Employee
VMware Employee

Hi,

 

Unfortunately, we are not able to provide an insight on this issue as this forum is concerned with vSphere Client SDK and Plugins.

Try posting your question in the general forum or a specific forum of the used SDK.

 

Best Regards,

Denis

0 Kudos