Forums

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

Ttrouble connecting to Jira Software Cloud using Python

WS
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!
January 3, 2021

I'm having trouble connecting to Jira Software Cloud using Python.

 

ERROR MESSAGE:

ConnectionError: HTTPSConnectionPool(host='my_site.atlassian.net', port=443): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000026ED84B4850>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

 

MY CODE:

from jira import JIRA

i_user = 'my_email'
i_server = 'https://my_site.atlassian.net'
i_apikey = 'my_admin_api_key'

i_options = {'server': i_server}

jira = JIRA(options = i_options, basic_auth=(i_user,i_apikey))

1 answer

1 accepted

0 votes
Answer accepted
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2021

Hi @WS 

Welcome to Community! It seems you might be behind a network that doesn't allow the connection. Have you tried a different network to notice if the same problem occurs?

WS
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!
January 4, 2021

Rookie mistake ... Thanks Prince

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events