Hi all, I have the following code to log into Jira using the Python Jira API:
from jira import JIRA
import os
username = os.environ.get("JIRA_USERNAME")
password = os.environ.get("JIRA_PASSWORD")
server = "..."
jira = JIRA(options={'server': server}, basic_auth=(username, password))
This works fine in a Jupyter Notebook, but results in a 401 in a standalone Python script:
jira.exceptions.JIRAError: JiraError HTTP 401 url
Any idea how to get past this?
Cheers,
Ingo