netsuite-suitecloud-sdk: suitecloud account:setup fails on case of letters in account ID

I was trying to stand up a new SDF project. My Account ID is like “tstdrv1234567”.

First attempt failed, when I specified that account ID as NetSuite shows it in the URL bar in my browser - with tstdrv in lower case letters.

C:\workspaces\test-cli\test-cli>suitecloud account:setup ? Select an authentication method: Save a TBA token issued in NetSuite. ? Enter an authentication ID (authID): authID1 ? Enter the account ID: **tstdrv1234567** ? Enter the Token ID: **************************************************************** ? Enter the Token Secret: **************************************************************** The token could not be validated. The authentication details are not valid or the server could not respond. Review your authentication details and try again. Error details: Invalid login attempt.

Second attempt was successful - when I specified the account ID with upper case letters, as a guess.

C:\workspaces\test-cli\test-cli>suitecloud account:setup -i ? Select an authentication method: Save a TBA token issued in NetSuite. ? Enter an authentication ID (authID): authID1 ? Enter the account ID: **TSTDRV1234567** ? Enter the Token ID: **************************************************************** ? Enter the Token Secret: **************************************************************** The TBA token has been saved for the following company and role: ^^^SuiteCloud Developer Exam [Administrator]. This project will use the authentication ID as default. If you want to change your default credentials, run "suitecloud account:setup" again. The account has been successfully set up.

Ideally, the tool would convert those ‘tstdrv’ letters to upper case for me, so it doesn’t fail with an error message that is hard to make sense of. Thanks,

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@anshulgupta4 Make sure when you generate the token from UI, you select SuiteCloud Development Integration from the application name dropdown. Otherwise token will not work.

@WendyYang77 Yes that’s correct, what you see in URL is not your account ID in some cases. You can confirm your account ID if you are logged in to NS, right click on page and -> View Page Source then scroll to the bottom. You will see something like COMPID [ 12345_SB1 ] This is the one you can rely on!