Forums

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

ConnectionError' object has no attribute 'headers'

Mayuresh
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!
November 10, 2021

We are using OS: Ubuntu 18.04.4 LTS & python version 3.6.9 But we got below error...

 

2021-11-10 18:16:57 WARNING: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) while doing GET https://jira.XXX.com/rest/api/2/serverInfo [{'params': None, 'headers': {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json,*.*;q=0.9', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json', 'X-Atlassian-Token': 'no-check'}}]
2021-11-10 18:16:57 WARNING: Got ConnectionError [('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))] errno:None on GET https://jira.XXX.com/rest/api/2/serverInfo
{'response': None, 'request': <PreparedRequest [GET]>}
{'response': None, 'request': <PreparedRequest [GET]>}
2021-11-10 18:16:57 WARNING: Got recoverable error from GET https://jira.XXXX.com/rest/api/2/serverInfo, will retry [1/3] in 6.180961328056589s. Err: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2021-11-10 18:16:57 INFO: JIRA2_Data_Load Job ===> Unable to Connect to Server API: 'ConnectionError' object has no attribute 'headers'

1 answer

0 votes
ssubramani_3pc
Contributor
January 4, 2022

I have installed this library "python-certifi-win32"  and it solved the problem

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events