ssl - Can't connect to JIRA Python through REST api https url -
i seek connect jira dev sandbox through https comes ssl23_get_server_hello:unknown protocol error
this error log/stack trace. seek both ports 8080 , 443 no joy.
>>> jira.client import jira >>> options = {'server':'localhost:8080'} >>> auth = ('username', 'password') >>> jira = jira(options, auth) traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "/home/ve/lib/python2.6/site-packages/jira/client.py", line 88, in __init__ self._create_http_basic_session(*basic_auth) file "/home/ve/lib/python2.6/site-packages/jira/client.py", line 1369, in _create_http_basic_session r = self._session.post(url, data=json.dumps(payload)) file "/home/ve/lib/python2.6/site-packages/requests/sessions.py", line 284, in post homecoming self.request('post', url, data=data, **kwargs) file "/home/ve/lib/python2.6/site-packages/requests/sessions.py", line 241, in request r.send(prefetch=prefetch) file "/home/ve/lib/python2.6/site-packages/requests/models.py", line 638, in send raise sslerror(e) requests.exceptions.sslerror: [errno 1] _ssl.c:480: error:140770fc:ssl routines:ssl23_get_server_hello:unknown protocol >>> options = {'server':'localhost:443'} >>> auth = ('username', 'password') >>> jira = jira(options, auth) traceback (most recent phone call last): file "<stdin>", line 1, in <module> file "/home/ve/lib/python2.6/site-packages/jira/client.py", line 88, in __init__ self._create_http_basic_session(*basic_auth) file "/home/ve/lib/python2.6/site-packages/jira/client.py", line 1369, in _create_http_basic_session r = self._session.post(url, data=json.dumps(payload)) file "/home/ve/lib/python2.6/site-packages/requests/sessions.py", line 284, in post homecoming self.request('post', url, data=data, **kwargs) file "/home/ve/lib/python2.6/site-packages/requests/sessions.py", line 241, in request r.send(prefetch=prefetch) file "/home/ve/lib/python2.6/site-packages/requests/models.py", line 631, in send raise connectionerror(sockerr) requests.exceptions.connectionerror: [errno 110] connection timed out >>>
try this:
from jira.client import jira options = {'server':'localhost:8080'} jira = jira(options) jira = jira(basic_auth=('username', 'password'))
if doesn't help, chance have openssl
conflicts?
when curl linked against openssl 0.9.8 , tries access server running openssl 1.0.0, ssl handshake fails with: curl: (35) error:14077458:ssl routines:ssl23_get_server_hello:reason(1112)
python ssl https connection jira
No comments:
Post a Comment