I'm using jira-python
library to gain API access to our company account on Jira.
This is the block of code that should work according to the docs:
from jira.client import JIRA
jira = JIRA(options={'server': 'https://jira.xyz.co.uk'},
basic_auth=('marek@xyz.co.uk', 'my_token'))
Taking into account the fact that cookie-based authentication no longer works I generated API tokens and parsed them into code, yet I'm getting error:
WARNING:root:Got recoverable error from GET https://jira.xyz.co.uk/rest/api/2/serverInfo, will retry [2/3] in 5.527397890949137s. Err: 401
And this just loops and loops until I hit Ctrl+c
.
I found this topic here Issue in connecting with JIRA python where somebody asked the very same question but the solution didn't work for me as the missing libraries aren't missing on my system.
What else I could try ?