Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Response code 401 (Unauthorized) when using snc ui-component login

Gary Fawcett1
Tera Guru

Hi,

 

Trying to scaffold a component project in my DEV instance.

 

Whenever I try to use the login command with SNC, I get "Response code 401 (Unauthorized)"

 

You also get a log entry with the message "Basic authentication failed for user: carol.coughlin"

 

The password is correct and you can logon to instance all with the password, the user has Admin rights as well

 

NPM - 6.4.18, Node v14.21.3, snc is 1.1.0

washingtondc - patch1

 

snc ui-component login https://dev206600.service-now.com/ --username=carol.coughlin --password==HIDDEN
× Connection to 'https://dev206600.service-now.com' failed. Credentials not saved.
Response code 401 (Unauthorized)

 

Anyone have any idea why this would be failing for me?

 

Thanks...Gary Fawcett

0 REPLIES 0