I am using Python 2.7 and the JIRA 2.0.0 python library to try to make rest calls using the JIRA api. I am getting an error "WARNING:root:Got recoverable error from GET https://jira.server.org/rest/api/2/serverInfo, will retry [1/3] in 3.80091917566s. Err: 401" and cannot figure out what the problem is.
I am able to use Postman API tool and successfully login using the same credentials as above. If anyone has a suggestion with using requests library that is fine too.
from jira import JIRA
options = {'server': 'https://jira.server.org'}
JIRA(options=options, basic_auth=( 'myemail@email.com', 'myApiToken')
I was able to get it working using my regular username and password. Maybe because we have an older version of JIRA? We are on Server 7.11.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.