Hi everyone, I’m getting the following error while...
# suitecommerce
l
Hi everyone, I’m getting the following error while trying to fetch the Extension of a Suitecommerce
(node:89214) UnhandledPromiseRejectionWarning: Error: Invalid login attempt.
at OAuth1._baseStep (/Users/Documents/Repos/extensions/ns_npm_repository/oauth1/index.js28719)
m
You may need to give some more details, like gulp, npm, node versions. If you are using SC or SCA, and what version.
If your Employee have the right roles, token, etc.
l
It’s an SC 2023.1.3, I’m using Admin role. And I already checked the token and integration record being created.. The full error is this one: [153709] Continue the authentication process in the prompted browser. (node:90600) UnhandledPromiseRejectionWarning: Error: Invalid login attempt. at OAuth1._baseStep (/Users/Documents/Repos/extensions/ns_npm_repository/oauth1/index.js28719) at processTicksAndRejections (internal/process/task_queues.js975) at async OAuth1.issueToken (/Users/Documents/Repos//extensions/ns_npm_repository/oauth1/index.js35338) at async authorize (/Users/Documents/Repos/extensions/gulp/ns-deploy/net.js33324) (node:90600) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:90600) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
m
What node version are you using and do you have your integration record credentials loaded into the .env file?
l
i’m using node 14.9 and yes, I added the integration record credentials to the .env
should I be using a different node version? I don’t know what else to try
l
I’m sorry.. it was a typo, I’m using the 14.19.0 version
m
This article covers how to setup the integration record (I definitely set it up wrong the first time). Make sure you have the integration record info in the .env file https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1509997459.html#Set-Up-Theme-Developer-Tools
And earlier I had to recreate my integration record for some reason 🤷🏻‍♂️ so you could always try that
l
I just did.. but still having the same error 😞
m
I don’t know if this would help but you could potentially run extension:fetch —to (two hyphens) and make a new authID using the credentials in your .env
l
yeah.. still not working. I’m having really bad luck with this today.
@Flo do you know if there is any other known issue related to fetching extensions with the latests tools?
f
Not that I am aware. Are you using npm?
Try deleting the consumer and secrety key from your env file and leave it blank. Then run a fetch -to
You will get an error that the keys are missing
Enter the keys and try again
I remember that working for me once
l
I just tested that and same error
f
Typically when i get errors in devtools is when i am not using the correct node version (i use nvm) and I installed gulp using a higher node version. I even ended up uninstalling nvm and installing everything from scratch 🤷🏻‍♀️
netsuite 1
I just checked and there are no errors reported for devtools
l
I use nvm as well. But this is the first time I’m getting this type of error 😞 I’ll need to try to uninstall everything