now-cli login giving me unauthorized for confirmed credentials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2020 04:49 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2020 08:20 PM
Hi Murali
Yes I have disabled that field and it's still the same. Any thoughts?
Thanks
Nitin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2020 03:41 AM
HI There,
Check if the user name is not having any spaces, use single word and try it. I initially had space in the username and got the same error.
Check the steps,
1. npm install @servicenow/cli -g
2. now-cli login --host https://<yourInstance>.service-now.com --method basic --username <UserName> --password <password>
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2020 04:34 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2020 07:58 AM
I am using the admin username and I have reset the pass and tried, It is working, also tried in a lab instance which works fine too. You can check after your holidays. Happy vacation!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2020 09:56 PM
I have the same issue, how did u fix this?