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'https://xxxx.company.com',                     '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://xxxx.company.com/rest/api/2/serverInfo [{u'headers':

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

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

return self._get_json('serverInfo') File "C:\Python27\lib\site-packages\jira\client.py", line 2035, in _get_json r = self._session.get(url, params=params) File "C:\Python27\lib\site-packages\jira\resilientsession.py", line 130, in g t return self.__verb('GET', url, **kwargs) File "C:\Python27\lib\site-packages\jira\resilientsession.py", 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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 18 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

45 views 1 0
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