Error for fetching the Theme/Extension version 21.1 and later

Resolve error for fetching the theme/extension version 21.1 and later

Steps to resolve the error for fetching the extension version 21.1 and later:

  1. Edit file under ExtensionDevelopmentTools/ns_npm_repository/oauth1/index.js
  2. Replace this code: const hostnameStep1 = this.vm ? hostName : rest${molecule}.netsuite.com;

with

   const hostnameStep1 = '<account_number>.restlets.api.netsuite.com';

NOTE: replace with the environment account number you wish to fetch theme/extensions from. For Sandbox, it should be like 123456-sb1.

  1. Save index.js file (Create a new file with same name and replace the locked file with new one)
  2. Run gulp theme:fetch
  3. Create token and it should open up the browser to Allow or Deny access to the account.

Leave a comment

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