Hello, I just installed the extension tool and tr...
# suitecommerce
s
Hello, I just installed the extension tool and trying to run a gulp extension:fetch. I am getting unxpected error below. An unexpected error has occurred. Please go back and try again. The url it is generating is https://system.netsuite.com/app/login/secure/authorizetoken.nl?oauth_token=undefined. It seems it is not able to reach this url
u
This is a known issue, try following File: SC_21.2\Commons\ns_npm_repository\oauth1\index.js and change
Copy code
const hostnameStep1 = this.vm ? hostName : `rest${molecule}.<http://netsuite.com|netsuite.com>`;

to

const hostnameStep1 = this.vm ? hostName : `system${molecule}.<http://netsuite.com|netsuite.com>`;
s
did not work for me.
s
@suiteExperimenter Is this working for you now? We are also facing the same issue in one of our accounts
s
Hi @Swathi I resolved by manually creating a token and added it to my .nstba file.
s
@suiteExperimenter Could you please let me know how can we add it or where that file will be?
s
@Swathi Take a look at suiteanswers 97826
s
@suiteExperimenter Yeah but the browser is showing unexpected error for generating a new token. Is that resolved for you?
s
@Swathi You cannot go to that path as it is having the known issue. Unless the suggested by modifying the index.js works for you. The more accurate documentation is SA: 82313 and then add the token details to your .nstba manually. It's like a json file that looks like below. { "authID": { "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "account": "ACCOUNTID" } } If you have the same like above much better. Just follow the format. After adding, you can now gulp extension:fetch From the SA: 97826 _On Windows, the .nstba file is stored in the 
C:\Users\user_name
 directory. You can edit the .nstba file to manage the saved tokens that are listed in the developer tools when you specify the 
--to
 parameter for a fetch or deploy operation._ I hope I made you happy on this more detailed answer. :)