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:
- Edit file under ExtensionDevelopmentTools/ns_npm_repository/oauth1/index.js
- 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.
- Save index.js file (Create a new file with same name and replace the locked file with new one)
- Run gulp theme:fetch
- Create token and it should open up the browser to Allow or Deny access to the account.