SSLError: bad handshake: SysCallError(-1, 'Unexpected EOF') when creating JIRA object on Python

I'm trying to create a simple script to fetch certain information from Jira, from user provided JIRA ID inputs.


However, I am seeing a SSLError: bad handshake error when I try to create the JIRA object. Here's the code snippet that I'm using :

options = {                    'verify': False,                    'server': r'',                     'project': 'xxx'                    }
        UNAME = raw_input('Username: ')         PWORD = getpass.getpass('Password: ')         basic_authentication = (UNAME, PWORD)         self.jira = JIRA(options=options, basic_auth=basic_authentication

This is the error I see:

" WARNING:root:bad handshake: SysCallError(-1, 'Unexpected EOF') while doing GET ttps:// [{u'headers':

Unknown macro: {'Accept-Encoding: 'gzip, deflate', 'Accept'}

, 'params': None}] WARNING:root:Got recoverable error from GET 2/serverInfo, will retry [4/3] in 40s. Err: bad handshake: SysCallError(-1, 'Un xpected EOF') Traceback (most recent call last): File "", line 62, in descriptionFetch self.jira = JIRA(options=options, basic_auth=basic_authentication) File "C:\Python27\lib\site-packages\jira\", line 261, in _init_ si = self.server_info() File "C:\Python27\lib\site-packages\jira\", line 1619, in server_inf

return self._get_json('serverInfo') File "C:\Python27\lib\site-packages\jira\", line 2035, in _get_json r = self._session.get(url, params=params) File "C:\Python27\lib\site-packages\jira\", line 130, in g t return self.__verb('GET', url, **kwargs) File "C:\Python27\lib\site-packages\jira\", line 125, in _ verb raise exception requests.exceptions.SSLError: bad handshake: SysCallError(-1, 'Unexpected EOF')  

 I'm using Python 2.7.10 and installed pyOpenSSL, ndg-httpsclient and pyasn1 python packages on my system.


1 answer

Where is this error being thrown? Is it immediately after you initialise the JIRA object?

Have you tried adjusting the params of your connection string (e.g. remove verify = false and remove the project selection at the JIRA initiatialisation)?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,337 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot