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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,794 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot