labels gadget error: An internal server error occurred when requesting resource .

Im trying to use the jira labels gadget within confluence. i have the gadget imported and i can add it to a space, but i get a "An internal server error occurred when requesting resource " when i try to set the gadgets parameters.

The link between confluence and jira is ok, all the other jira gadgets that i am using are working. its just the labels gadget that is not working. any ideas or directions to troubleshoot.

2 answers

Hi Topher!

Since I don't know which version of Confluence and Jira you are running, I'm not sure if the issue you are experiencing is a bug or not.

Anyway, I suggest you to check on jira.atlassian.com for bugs related to that and what's the workaround.
For example, you may be experiencing this: CONF-20426 So in this case, it happens when Jira and Confluence are in the same domain.

Hope it helps!

Im on latest confluence ( 4.3.1 ) and jira (5.1.4). I checked CONF-20426 and its related JRA-23934 and i dont think it applies to me. The average age and pie chart gadget these issues use as examples for the issue work for me. Other JIRA gadgets ive use also work. I think it has something to do with the labels since its only the labels gadget that does not work.

0 votes

An internal server error is a generic error. Are you seeing any details in the JIRA or Confluence logs? That might give you some more details!

It is JIRA who is rejecting the request. Can you check the JIRA logs as well?

I get the following errors in confluence:

2012-10-01 18:11:13,724 ERROR [http-8090-13] [renderer.internal.http.HttpClientFetcher] fetch Unable to retrieve response

-- url: /plugins/servlet/gadgets/makeRequest | userName: user1 | referer: http://e5clinical.host1.org:8090/plugins/servlet/gadgets/ifr?container=atlassian&mid=122406961152&country=GB&lang=en&view=default&view-params=%7B%22writable%22%3A%22true%22%7D&st=atlassian%3AGL ... st%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.jira.gadgets%3Alabels-gadget%2Fgadgets%2Flabels-gadget.xml&libs=auth-refresh

java.io.EOFException

at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:249)

....

AND

2012-10-01 18:11:13,786 WARN [http-8090-13] [http.impl.client.DefaultRequestDirector] handleResponse Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm="http%3A%2F%2Fe5clinical.host1.org%3A8100", oauth_problem="consumer_key_unknown"}

-- url: /plugins/servlet/gadgets/makeRequest | userName: user1 | referer:http://e5clinical.host1.org:8090/plugins/servlet/gadgets/ifr?container=atlassian&mid=122406961152&country=GB&lang=en&view=default&view-params=%7B%22writable%22%3A%22true%22%7D&st=...%2Fcom.atlassian.jira.gadgets%3Alabels-gadget%2Fgadgets%2Flabels-gadget.xml&libs=auth-refresh

2012-10-01 18:11:13,786 WARN [http-8090-13] [shindig.gadgets.oauth.OAuthResponseParams] logDetailedWarning OAuth fetch fatal error: [consumer_key_unknown,Service provider rejected request]

-- url: /plugins/servlet/gadgets/makeRequest | userName: user1 | referer: http://e5clinical.host1.org:8090/plugins/servlet/gadgets/ifr?container=atlassian&mid=122406961152&country=GB&lang=en&view=default&view-params=%7B%22writable%22%3A%22true%22%7D&st=...com.atlassian.jira.gadgets%3Alabels-gadget%2Fgadgets%2Flabels-gadget.xml&libs=auth-refresh

here is relevant section from access_log:

10.0.2.150 1113x9772x1 - [01/Oct/2012:18:33:50 -0700] "GET /rest/gadgets/1.0/g/feed HTTP/1.1" 200 24530 15 "-" "Atlassian-Gadgets-HttpClient" "-"

10.0.2.150 1113x9773x1 - [01/Oct/2012:18:33:50 -0700] "GET /rest/gadgets/1.0/g/com.atlassian.jira.gadgets:labels-gadget/gadgets/labels-gadget.xml HTTP/1.1" 200 13515 15 "-" "-" "-"

10.0.2.150 1113x9774x1 - [01/Oct/2012:18:33:50 -0700] "GET /rest/gadgets/1.0/g/feed HTTP/1.1" 200 24530 0 "-" "Atlassian-Gadgets-HttpClient" "-"

10.0.2.150 1113x9775x1 cdailing [01/Oct/2012:18:33:51 -0700] "GET /rest/gadget/1.0/labels/gadget/fields HTTP/1.1" 200 93 0 "-" "-" "j0tr3n"

10.0.2.150 1113x9776x2 cdailing [01/Oct/2012:18:33:50 -0700] "GET /rest/gadget/1.0/filtersAndProjects?showFilters=false HTTP/1.1" 200 353 0 "-" "-" "6b7vw1"

10.0.2.150 1114x9777x1 - [01/Oct/2012:18:34:00 -0700] "POST /plugins/servlet/oauth/request-token HTTP/1.1" 401 34 16 "-" "-" "-"

There is nothing in the other logs that are relevant.

Are you using the same hostname in the url as you are doing it for other gadgets?

yes, same hostname, both jira and confluence are on the same host, just different port #s.

All other gadgets from jira work in confluence though...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,088 views 17 14
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