Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why is Jira REST API returns HTML as error messages?

Doron Cohen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2018

Hi,

We are using Jira with the official Python SDK and due to a recent prematurely deprecated authentication method we get a lot of 401 errors formatted as HTML.

Now, we already traced the cause for these errors so no need for help there, I only want to know why HTML? Whoever is sending a message to Jira API is doing so with computer code. Why can't I get a JSON message that describes the error in a way I can easily parse with my program?

Is there a reason a JSON API would return an HTML response?

0 answers

Suggest an answer

Log in or Sign up to answer