Has anyone else experienced frequent timeouts from nlapiRequestURL calls. We have debugged this on our end and there appears to be lengthy DNS lookups happening which contribute to the 5s timeout. These happen on the first request of each execution context. This is causing many of our external requests to fail and creating a major headache for a monday morning.
Netsuite support mentioned a known defect but we are unsure of its status or defect ID.
function checkNetwork()
{
var start = new Date();
nlapiRequestURL('https://www.w3.org/favicon.ico?time=' + start.getTime());
var end = new Date();
console.log(end.getTime() - start.getTime());
setTimeout(checkNetwork, 500);
}
checkNetwork()
When running this test we notice that initial request is nearing (or exceeding) the 5000 ms timeout point. Subsequent requests are much faster.
We ran this same request against another server location (not one of our servers) and noticed the same behavior.