Forums

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

Trouble connecting to JIRA instance using JIRA-Python

Daniel Mepham September 1, 2015

I am trying to connect to connect to my JIRA cloud instance using JIRA-Python. The following code worked for me at at first:

server = {'server': myServerAddress}
jira = JIRA(server, basic_auth = (myusername, mypass))

 I was able to connect to both my local instance and the clound instance using this code previously. However, when I run the same exact code now, I get the error:

MissingSchema: Invalid URL 'https:/myinstance.atlassian.net/rest/api/2/serverInfo': No schema supplied. Perhaps you meant http://https:/myinstance.atlassian.net/rest/api/2/serverInfo?

It might be that something about my instance that has changed, but I'm at a loss for what it could be. Does anyone have any insight as to what could be causing this?

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
September 1, 2015

It looks like you are missing a / from the url - https://

Daniel Mepham September 1, 2015

Wow, what a dumb error on my part. Thanks Nic!

Suggest an answer

Log in or Sign up to answer