Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

[jira.JIRA][Python/macOS] Getting"SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c...."

Padmakumar Rajan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2022

[jira.JIRA][Python/macOS] Getting "SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c...."

Following is the python code I am trying to execute in my MacBook.  The network connection is thru VPN and needs proxy.


from jira import JIRA

import os


USER_NAME = 'my-username'

PASSWORD = 'my-password'

URL = 'https://my-jira-url.com/my-path'

OPTS = {'server': URL} #, 'verify': False} #, 'verify': True, 'client_cert': '/etc/ssl/cert.pem'}

AUTH = (USER_NAME, PASSWORD)

VALID = False #validate=True

PROXIES = {"http": "http://myhttp-proxy.com:80", "https": "https://myhttps-proxy.com:80"}


jira
= JIRA(options=OPTS, basic_auth=AUTH, validate=VALID, proxies=PROXIES)

When I execute this code, I am always getting:

WARNING:root:HTTPSConnectionPool(host='my-jira-url.com', port=443): Max retries exceeded with url: /my-path/rest/api/2/serverInfo (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),)) while doing GET https://my-jira-url.com/my-path/rest/api/2/serverInfo

WARNING:root:Got ConnectionError [HTTPSConnectionPool(host='my-jira-url.com', port=443): Max retries exceeded with url: /my-path/rest/api/2/serverInfo (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),))] errno:None on GET https://my-jira-url.com/my-path/rest/api/2/serverInfo

{'response': None, 'request': <PreparedRequest [GET]>}

{'response': None, 'request': <PreparedRequest [GET]>}

WARNING:root:Got recoverable error from GET https://my-jira-url.com/my-path/rest/api/2/serverInfo, will retry [1/3] in 4.436046228218333s. Err: HTTPSConnectionPool(host='my-jira-url.com', port=443): Max retries exceeded with url: /my-path/rest/api/2/serverInfo (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),))


What is that I am missing here?

What could be wrong with my environment?

I tried most of the solutions proposed in various forums and none of them worked.


Config:

macOS ==> BigSur 11.6.2 

python3 --version ==> Python 3.6.8

openssl version ==> LibreSSL 2.8.3

pip3 list ==> 

  • appdirs              1.4.3
  • asn1crypto           1.4.0
  • atlassian-python-api 3.18.0
  • bottle               0.12.18
  • certifi              2021.10.8
  • cffi                 1.14.2
  • chardet              3.0.4
  • charset-normalizer   2.0.9
  • cmake                3.18.2.post1
  • colorama             0.4.3
  • conan                1.44.0
  • cryptography         2.3.1
  • dataclasses          0.8
  • decorator            5.1.1
  • defusedxml           0.7.1
  • Deprecated           1.2.13
  • deprecation          2.0.7
  • distlib              0.3.0
  • distro               1.1.0
  • fasteners            0.15
  • filelock             3.0.12
  • future               0.18.2
  • gssapi               1.7.2
  • idna                 2.6
  • importlib-metadata   4.8.3
  • importlib-resources  1.3.1
  • Jinja2               2.11.2
  • jira                 3.1.1
  • keyring              23.4.1
  • krb5                 0.2.0
  • MarkupSafe           1.1.1
  • monotonic            1.5
  • ndg-httpsclient      0.5.1
  • node-semver          0.6.1
  • oauthlib             3.1.1
  • packaging            20.4
  • patch-ng             1.17.4
  • pip                  21.3.1
  • pluginbase           1.0.0
  • pyasn1               0.4.8
  • pycparser            2.20
  • Pygments             2.6.1
  • PyJWT                1.7.1
  • pyOpenSSL            18.0.0
  • pyparsing            2.4.7
  • pyspnego             0.3.1
  • python-dateutil      2.8.1
  • PyYAML               5.3.1
  • requests             2.27.1
  • requests-kerberos    0.14.0
  • requests-oauthlib    1.3.0
  • requests-toolbelt    0.9.1
  • setuptools           40.6.2
  • six                  1.14.0
  • tqdm                 4.48.2
  • typing_extensions    4.0.1
  • urllib3              1.26.7
  • virtualenv           20.0.10
  • wrapt                1.13.3
  • zipp                 3.1.0

1 answer

0 votes
Carlos Garcia Navarro
Community Champion
January 9, 2022
Padmakumar Rajan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2022

Hi @Carlos Garcia Navarro ,

Thankyou for your response. I already saw this.  In that, they are not talking abt the issue with respect to the usage of jira.JIRA object.  Also I installed all the packages specified in the responses, and still facing the issues.

Diana Soares
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2023

@Padmakumar Rajan have you found an answer to this error? I am facing the same issue now and can't find a solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events