模块“ ssl”没有属性“ PROTOCOL_TLSv1”

时间:2019-07-04 13:41:34

标签: ssl jira-rest-api

尝试使用rest API访问jira但出现SSL错误,

url = "https://URL/rest/api/2/issue/"+issueId
resposnsenew=requests.request("GET",url, auth=('xya','Makkfafdk@##5'))

File "D:\RestJIRA\restjiravenv\lib\site-packages\urllib3\contrib\pyopenssl.py", line 82, in <module>
    ssl.PROTOCOL_TLSv1: OpenSSL.SSL.TLSv1_METHOD,
AttributeError: module 'ssl' has no attribute 'PROTOCOL_TLSv1'

有什么办法解决这个问题吗?

0 个答案:

没有答案