Developing for Splunk Enterprise

Why does Splunk compile the commented code: Getting 500 error and "trouble with rendering due to one line of the code"?

Explorer

Hi everyone!

Who can explain to me why Splunk Web Service returns a 500 error when I write this part of code?

 

...
var actionID = query['id'];
var action = query['action'];
// query example {"id": 2, "action": "Remove item"}


//document.getElementById("actions").innerHTML+=`<option value="${actionID}">(${action})</option>`;
...

 

In file web_service.log I have a message about "trouble with rendering due to one line of the code" but this line is commented.

Error message:

Screenshot from 2020-08-05 17-01-50.png

Labels (2)
Tags (1)
0 Karma