I tried using Python JIRA client with following code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from jira.client import JIRA
jira = JIRA(options={'server': 'http://server.atlassian.net'},
basic_auth=('email@example.com', 'pass'))
projects = jira.projects()
for v in projects:
print v
And I got following error:
Got recoverable error from GET https://server.atlassian.net/rest/api/2/serverInfo, will retry [1/3] in 17.5832343958s. Err: 401 Unauthorized
Using python 2.7 (virtualenv), installed using pip install jira
. I tried using my username and email and am certain that my login credentials are correct (I can login using my browser with same credentials without a problem). Any tips what am I doing wrong?