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)
print(oauth_dict)
options = dict(server=server)
print(options)
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?
Thanks,
Laxmi
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
https://developer.atlassian.com/cloud/jira/platform/rest/v3/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.