I have used the following sample python code to try and connect to the JIRA 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 using a browser. Any help will be appreciated.
Thanks M.H.