# Snippet Generator fails for recordIssues plugin

**URL:** <https://community.jenkins.io/t/snippet-generator-fails-for-recordissues-plugin/9395>\
**Category:** Using Jenkins\
**Created:** [September 4, 2023, 5:27pm UTC](https://community.jenkins.io/t/snippet-generator-fails-for-recordissues-plugin/9395 "2023-09-04T17:27:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 4, 2023, 5:27pm UTC](https://community.jenkins.io/t/snippet-generator-fails-for-recordissues-plugin/9395/1 "2023-09-04T17:27:18Z")

</div>

Jenkins setup: 2.414.1  
Warnings NG plugin: 10.4.0  
Browser: Edge (on Windows)

Hi, I have mentioned this problem before but I have been unable to fix it and so would like to take a fresh look at it.

When I open the Snippet Generator and select the recordIssues plugin, Edge’s Developer Tools Console displays error:

```auto
GET https://jenkins-temptest.uktm.eu.nec.com/scripts/utilities.js net::ERR_ABORTED 404
hudson-behavior.js:2750 

```

Then I select tool ‘gcc’ and click button **Generate Pipeline Script**. I then see error:

```auto
POST https://jenkins-temptest.uktm.eu.nec.com/pipeline-syntax/generateSnippet 500
(index):74

```

No text appears in the script box.

When I hover over the Generate Pipeline Script button it disappears.

Other (but I think not all) tools work ok.

It may be relevant that Jenkins works behind nginx, but an http url without nginx also fails.

I want to fix the Snippet Generator because it is very useful. Any thoughts on what is wrong please?

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 5, 2023, 4:55pm UTC](https://community.jenkins.io/t/snippet-generator-fails-for-recordissues-plugin/9395/2 "2023-09-05T16:55:50Z")

</div>

Just an update on this. On http (without nginx) the Snippet Generator now seems to generate code as expected. However, for any Sample Step, the **Generate Pipeline Script** button disappears when I hover over it. This happens in Edge and Firefox.

Can anyone reproduce this behavior in Jenkins 2.414.1?

---

<div class="post-metadata">

**Author:** ![kon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/kon/32/1197_2.png) [@kon](https://community.jenkins.io/u/kon)\
**Post date:** [September 5, 2023, 6:43pm UTC](https://community.jenkins.io/t/snippet-generator-fails-for-recordissues-plugin/9395/3 "2023-09-05T18:43:07Z")

</div>

Jenkins 2.414.1, [Pipeline: Groovy 3774.v4a\_d648d409ce](https://plugins.jenkins.io/workflow-cps), [Warnings Next Generation Plugin 10.4.0](https://plugins.jenkins.io/warnings-ng). Firefox 102.15.0esr, or Microsoft Edge 116.0.1938.69.

I don’t see plain “gcc” in the tools list. There are “GNU C Compiler (gcc)” and “GNU C Compiler 3 (gcc)”. I added both of those tools and clicked “Generate Pipeline Script”. There were no errors or warnings in the browser console, POST to ${JENKINS\_URL}/pipeline-syntax/generateSnippet returned HTTP status 200, and `recordIssues(tools: [gcc(), gcc3()])` was correctly generated.

The button does disappear on hover but that seems to be a symptom of [JENKINS-71479](https://issues.jenkins.io/browse/JENKINS-71479), not related to the HTTP status 500 that you’re getting.

There may be more information about the 500 status in the HTTP response or in Jenkins logs.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 6, 2023, 10:55am UTC](https://community.jenkins.io/t/snippet-generator-fails-for-recordissues-plugin/9395/4 "2023-09-06T10:55:40Z")

</div>

@kon Thanks for testing and confirming the bug with the button.

The tool I am using is **GNU C Compiler (gcc)**.

I think my next step is to look at the nginx configuration.
