now-cli login giving me unauthorized for confirmed credentials

cedricvl
Kilo Contributor

Following all steps on https://developer.servicenow.com/dev.do#!/guides/orlando/now-experience/cli/getting-started, I have now-cli working, but I cannot login to any instance using the admin credentials I know work just fine:

```

$ node --version
v12.16.1

$ now-cli --version
Now CLI @17.0.3

$ now-cli login --host https://xxxx.service-now.com --method basic --username admin --password yyyy
✖ Connection to 'https://xxxx.service-now.com' failed. Credentials not saved.
Response code 401 (Unauthorized)

 login [host] [method] [username] [password]

Login to a glide instance.

```

Is any config required on the instance level to get now-cli logins work?

 
16 REPLIES 16

I didn't yet. Haven't had time to look into this anymore unfortunately.

 

DirkRedeker
Mega Sage

Hi

Try to follow my step-by-step instructions using the link below:

https://community.servicenow.com/community?id=community_article&sys_id=9cd7b58adbfe94d0b1b102d5ca961...

Let me know if that helped to sort out.

BR

Dirk

 

Hi

Do you have an update on this?

If you were able to solve your issue or your question is answered, can you please close this thread by marking the best answer as correct & helpful.

This would indicate other users also to benefit from your question.

Thanks a lot &

BR

Dirk

Bala Krishna2
Mega Guru
Mega Guru

Is this your first time using now-cli?
If yes run npm i again. If not check on which instance you are connected to.

Suganth Jeyapra
Kilo Contributor

Does not seem to work for Quebec!