Forums

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

my python executable file cannot asscess jira by API

Hardy Wang
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!
July 30, 2024

here is the error report 

 

WARNING:root:HTTPConnectionPool(host='jira.jaguarmicro.com', port=80): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it。')) while doing GET http://jira.jaguarmicro.com/rest/api/2/serverInfo WARNING:root:Got ConnectionError [HTTPConnectionPool(host='jira.jaguarmicro.com', port=80): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it。'))] errno:None on GET http://jira.jaguarmicro.com/rest/api/2/serverInfo {'response': None, 'request': } {'response': None, 'request': } WARNING:root:Got recoverable error from GET http://jira.jaguarmicro.com/rest/api/2/serverInfo, will retry [1/3] in 17.7647761078918s. Err: HTTPConnectionPool(host='jira.jaguarmicro.com', port=80): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 。')) WARNING:root:HTTPConnectionPool(host='jira.jaguarmicro.com', port=80): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it。')) while doing GET http://jira.jaguarmicro.com/rest/api/2/serverInfo WARNING:root:Got ConnectionError [HTTPConnectionPool(host='jira.jaguarmicro.com', port=80): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it。'))] errno:None on GET http://jira.jaguarmicro.com/rest/api/2/serverInfo {'response': None, 'request': } {'response': None, 'request': }

 

BTW,I have already set the SSL to False, but it can't work!

1 answer

0 votes
Trudy Claspill
Community Champion
August 2, 2024

Hello @Hardy Wang 

Welcome to the Atlassian community.

Your post tags indicate you are using Jira Cloud, but the Jira URL you are showing is "jira.jaguarmicro.com". That suggests to me that you are not using the Jira Cloud product, which is a software-as-a-service product, but rather are using Jira Server or Jira Data Center.

Can you log in to your Jira instance and click on the Help button in the upper right corner and then select About and share with us the information you find there?

Prior to executing that API call, have you executed the necessary API calls to establish an authenticated session with the target system and the Jira product?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events