Hi, we have a back-end suitelet that returns a JSON in the body of the response.
In some cases when contacting the suitelet with nlapiRequestURL, netsuite appends the diagnostic data to the end of the body.
"<!-- 103 s: 68% #52 cache: 0% #1 -->
<!-- Host [ a10.prod.ams ] App Version [ 2020.1.0.107 ] -->
<!-- COMPID [ XXXX] EMAIL [
XXXX@YYY.com ] URL [ /app/site/hosting/scriptlet.nl ] Time [ Mon Aug 03 02
5412 PDT 2020 ] -->
<!-- Not logging slowest SQL -->"
Does anyone know why it adds this in some cases but not all?
(the client script fails in the current setup as it cannot JSON.parse() it with that in the end)