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

0 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

148 views 5 9
Read article

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