response from gadgets.io.makeRequest returns empty text field

Hi ,


We are using gadgets.io.makeRequest to call the JIRA APIs. Our calling method looks like,

function getTickets(url) {
var params = {};
params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
params[gadgets.io.RequestParameters.HEADERS] = {
"Authorization" : "Basic jijlsjkls==="
}
gadgets.io.makeRequest(url, response7, params);

function response7(obj)
{
var jsondata = obj.text;
var js=JSON.parse(jsondata);
tickets=(js.issues[0].fields.description).split(",");
};

 

But we are getting the response with empty "text" field

{text: "", rc: 500, headers: {…}, oauthApprovalUrl: undefined, oauthError: undefined, …},

 

We are facing this issues from today and we checked the same before a week with same code and it worked fine. But now it is failing.

Note:

1. We tried the same with calling with the xmlhttprequest, where it is working fine. Is there any change made to gadgets.io.makeRequest? or do we ignore some other.

2. We used same gadgets.io.makeRequest to call the stash APIs and it is working perfectly fine. Is something changes related to JIRA?

 

Please provide some fix, as we are using lot of gadgets.io.makeRequest in our custom gadgets.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,709 views 17 21
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you