Forums

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

JIRA REST API return html

Rakesh Malireddy
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!
March 5, 2022

Just curious any one face this issue.

 

I have an application (http client) that makes calls to cloud JIRA rest api. It worked until today with a proper json response. suddenly I am getting an html content as below(don't create an html file with the below content and try to open it, the js is bunch of bots. screwed up my machine with malware. didn't expect this from an enterprise software). I guess my calls are treated as bot requests and returns the following response.

"<html><head><title>Loading...</title></head><body><script type='text/javascript'>window.location.replace('https://mitapulse.atlassin.net/rest/api/2/search?jql=text+~+%27asset%27&js=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJKb2tlbiIsImV4cCI6MTY0NjUzOTkyNCwiaWF0IjoxNjQ2NTMyNzI0LCJpc3MiOiJKb2tlbiIsImpzIjoxLCJqdGkiOiIycmNxaGlnbnUwaGNjbjNwb2sybWkwNGIiLCJuYmYiOjE2NDY1MzI3MjQsInRzIjoxNjQ2NTMyNzI0NzE5MDQyfQ.RZCCOd3V0Kz1sXrkVJjIO2EvKtN-M1SwnC04hM32PQU&sid=d12dc9aa-9cf2-11ec-a8ce-e13136c6239e&validateQuery=strict');</script></body></html>"

 

if I call the jira rest api directly from postman, i get the response for the same query

image.png

 

is there a way any configuration that treats the request originating from a given machine are not treated as bot.

 

thanks

rakesh

 

 

0 answers

Suggest an answer

Log in or Sign up to answer