Issue's When I Try jira-python for accessing JIRA issues

nicolewells.n's Avatar

nicolewells.n

13 Oct, 2017 07:05 AM

I have used the following sample python code to try and connect to the JIRA( https://community.atlassian.com/ ) instance for our project.

options = {
'server': 'http://172.16.48.15:8080'
}
jira = JIRA(options=options, basic_auth=('<username>', '<password>'))

(I haven't attached the rest of the code since the issue occurs while trying to create an instance of JIRA) The 'username' and 'password' are the same that I use to access JIRA from a browser. After executing the above code I get the following error:

....The requested resource (/rest/api/2/serverInfo) is not available.....
http://172.16.48.15:8080/rest/api/2/serverInfo

Process finished with exit code 1
Can anybody please tell me what mistake am I making ? I have rights to access this server with my credentials. I can connect to JIRA( https://goo.gl/tQg585 ) using a browser. Any help will be appreciated.

Thanks

  1. Support Staff 1 Posted by Ilya Finkelshte... on 13 Oct, 2017 06:04 PM

    Ilya Finkelshteyn's Avatar

    172.16.48.15 looks like private address. You probably can connect to it from your local network but it cannot be accessed over public Internet.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac