nsomar / xserverpy

Manage Xcode server bots from the command line, without the need to open or install Xcode.
BSD 3-Clause "New" or "Revised" License
16 stars 2 forks source link

SSL error for servers with untrusted certs. #1

Open sjapps opened 9 years ago

sjapps commented 9 years ago

I have internal server and I don't have a "trusted" cert.

Getting the following error stacktrace if I run any command:

Traceback (most recent call last): File "/usr/local/bin/xserverpy", line 11, in sys.exit(start()) File "/Library/Python/2.7/site-packages/xserverpy/xserverpy.py", line 21, in start start_with_args(None) File "/Library/Python/2.7/site-packages/xserverpy/xserverpy.py", line 32, in start_with_args handle_bots(args) File "/Library/Python/2.7/site-packages/xserverpy/xserverpy.py", line 61, in handle_bots printer = BotsPrinter(b.get_all()) File "/Library/Python/2.7/site-packages/xserverpy/lib/base_service.py", line 15, in get_all result = self.perform_request(self.endpoint(), "get") File "/Library/Python/2.7/site-packages/xserverpy/lib/base_service.py", line 52, in perform_request raise e requests.exceptions.SSLError: [Errno 8] _ssl.c:507: EOF occurred in violation of protocol

sjapps commented 9 years ago

Looks like an issue with the requests library:

https://github.com/kennethreitz/requests/issues/2056 https://github.com/jkbrzt/httpie/issues/315