Unable to login to JIRA Server with Python

Hi Team,

I am trying to login to our on-prem JIRA instance using Python JIRA API. The code was working couple of weeks back but suddenly it stopped working and I am clueless as to why. Can anyone help me in finding out what went wrong? Below is my code snippet:
from jira import JIRA
user = ‘
apikey = '
server = ‘System Dashboard - Innovation JIRA

Creating connection with the JIRA

jira_server = {‘server’: server, ‘verify’: False}
jira = JIRA(options=jira_server, basic_auth=(user, apikey))

I am getting the below error:
JIRAError: JiraError HTTP 500 url: https://innovation-tech.pwc.com/jira/rest/api/2/serverInfo