I am trying to use the Jira python library to do some quite basic things. Even before doing anything, the constructor fails.
address = 'https://myaddress.atlassian.net'
options = {'server': address}
un = '[email protected]'
#un = 'my' #also doesn't work
pw = 'the_pasSword!'
cookie = (un, pw)
j = JIRA(options, basic_auth=cookie)
This is ALL the code.
The last line fails with
WARNING:root:Got recoverable error from GET https://myaddress.atlassian.net/rest/api/2/serverInfo, will retry [1/3] in 13.906688704524315s. Err: 401
WARNING:root:Got recoverable error from GET https://myaddress.atlassian.net/rest/api/2/serverInfo, will retry [2/3] in 4.071181495745648s. Err: 401
WARNING:root:Got recoverable error from GET https://myaddress.atlassian.net/rest/api/2/serverInfo, will retry [3/3] in 6.266303262421157s. Err: 401
Trying the credentials manually on atlassian do work, and I am able to log in.
Any idea why this very straightforward attempt to connect wouldn't work?