Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
nlapiRequestURL() Timeouts
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());
0