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)
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.
macOS ==> BigSur 11.6.2
python3 --version ==> Python 3.6.8
openssl version ==> LibreSSL 2.8.3
pip3 list ==>
Hi @Padmakumar Rajan ,
This article seems to have good advice on how to troubleshoot: https://stackoverflow.com/questions/33410577/python-requests-exceptions-sslerror-eof-occurred-in-violation-of-protocol
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Padmakumar Rajan have you found an answer to this error? I am facing the same issue now and can't find a solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.