Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not working with secured connection of teamcity server #87

Open
adityabyreddy opened this issue Jul 17, 2017 · 2 comments
Open

Comments

@adityabyreddy
Copy link

adityabyreddy commented Jul 17, 2017

Couldn't able to get the projects or any other info for a teamcity server running with secured connection.

Output

Traceback (most recent call last):
File "C:\Workspace\VSphereAPI\bin\download_latest_plugin_build.py", line 4, in
tc.get_builds(project="Eclipse")
File "C:\Python27\lib\site-packages\pyteamcity\legacy\legacy.py", line 237, in get_builds
**kwargs)
File "C:\Python27\lib\site-packages\pyteamcity\legacy\legacy.py", line 92, in inner_func
response = self._get(url)
File "C:\Python27\lib\site-packages\pyteamcity\legacy\legacy.py", line 164, in _get
return self._send_request(request)
File "C:\Python27\lib\site-packages\pyteamcity\legacy\legacy.py", line 182, in _send_request
raise new_exception
ConnectionError: Failed to connect to https://teamcity-url:443

@bgyu
Copy link

bgyu commented Dec 12, 2017

I got the same error.

@schancel
Copy link

schancel commented Feb 2, 2018

So I got this working, but you need to specify the protocol in the initialization of the object:

TeamCity('username', 'password', 'build.host.org', 443, None, 'https')

per https://github.com/SurveyMonkey/pyteamcity/blob/master/pyteamcity/legacy/legacy.py#L127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants