I am trying to call rally server simply using below:
rally = Rally(server, user, password, workspace=workspace, project=project)
But it is giving below error:
Traceback (most recent call last):File "testprint.py", line 20, in <module>rally = Rally(server, user=user, password=password, workspace=workspace, project=project)File "C:\RallyRestToolkitForPython-master\pyral\restapi.py", line 259, in __init__self.contextHelper.check(self.server, wksp, proj, self.isolated_workspace)File "C:\RallyRestToolkitForPython-master\pyral\context.py", line 171, in checkuser_response = self._getUserInfo()File "C:\RallyRestToolkitForPython-master\pyral\context.py", line 276, in _getUserInforaise RallyRESTAPIError(problem)
pyral.context.RallyRESTAPIError: Target Rally host: 'rally1.rallydev.com ' non-existent or unreachable
Since i am behind proxies, i put HTTP and HTTPS proxies in python code:
os.environ['HTTPS_PROXY'] = "PROXY:PORT"
os.environ['https_proxy'] = "PROXY:PORT"
os.environ['HTTP_PROXY'] = "PROXY:PORT"
It is now failing with below error:
Traceback (most recent call last):File "testprint.py", line 20, in <module>rally = Rally(server, user=user, password=password, workspace=workspace, project=project)File "C:\RallyRestToolkitForPython-master\pyral\restapi.py", line 259, in __init__self.contextHelper.check(self.server, wksp, proj, self.isolated_workspace)File "C:\RallyRestToolkitForPython-master\pyral\context.py", line 171, in checkuser_response = self._getUserInfo()File "C:\RallyRestToolkitForPython-master\pyral\context.py", line 276, in _getUserInforaise RallyRESTAPIError(problem)
pyral.context.RallyRESTAPIError: 'Cannot connect to proxy.', error('Tunnel connection failed: 504 Unknown Host
My proxies are working, as i have run other code to verify.