Resolve Error: “getaddrinfo ENOTFOUND xxxxxx_sb1.restlets.api.netsuite.com” when Fetching Theme and Extension files in Sandbox

Solution

  1. In the Theme or Extensions Development Tools directory, open this file: …/ns_npm_repository/oauth1/index.js
  2. Find the following line of code:
    • return this._baseStep(`${this.vm ? ” : account}${this.urls.step3}`, params);
  3. Replace it with the following line of code:
    • return this._baseStep(`${this.vm ? ” : account.replace(‘_’,’-‘)}${this.urls.step3}`, params);
  4. In the Theme or Extensions Development Tools directory, open this file: …/gulp/ns-deploy/net.js
  5. Find the following line of code:
    • deploy.info.hostname = `${account}.restlets.api.${molecule}netsuite.com`;
  6. Replace it with the following line of code:
    • deploy.info.hostname = `${account.replace(‘_’,’-‘)}.restlets.api.${molecule}netsuite.com`;

Leave a comment

Your email address will not be published. Required fields are marked *