Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Got 500 error while initializing Jira object using python library

Hi There,

Getting 500 jira.exceptions.JIRAError: JiraError HTTP 500 URL https://jira.somename/rest/api/2/serverInfo 

def _get_jira_instance(self):
props = self.parser
oauth_dict = {'access_token_secret': None,
'access_token': self.parse_prop('jira_accesstoken', props),
'consumer_key': self.parse_prop('jira_consumerkey', props),
'key_cert': self.read_jira_ppk()
server = self.parse_prop('jira_server', props)
options = dict(server=server)
return JIRA(options, oauth=oauth_dict)

All the values like access_token etc are coming from a file.

Any one please tell me what could be the problem in the above code?



1 answer

0 votes
brbojorque Community Leader Dec 18, 2019

You can do the debugging by getting the response from the request.

At the moment I can't find any reason why it should be a 500 error, it just means there is something wrong in the server when you requested it.

Hi Bryan,

Thank you for the quick response.

When I see the error response I don't find any error message like access token missing or token has expired something like that, but i unable to get the problem


Thanks again.

brbojorque Community Leader Dec 18, 2019

Hi @Laxminarsaiah Ragi ,

What python library you are using? 

I would like to try it myself and also are you using Jira Cloud or Server?

brbojorque Community Leader Dec 18, 2019

I would suggest to not use any library yet.

Please follow the guide in accessing the API in this link. 

I just tested it and it works.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you