REST Message - 401 - Invalid username/password combo

Thiagofmeira
Kilo Guru

Hi all,

I found many topics about this problem here in the community, but none helps me.

 

 I have to create an integration and the GET, DELETE and POST method works, but when I use the PUT method to edit some users, I get an error. I got to execute the integration in many applications and other systems but only in servicenow it is not working.

I'm getting the following error

Method failed: (/ocs/v1.php/cloud/users/Thiago2) with code: 401 - Invalid user name / password

 

The user is the same user used on other methods and is working

I've already tried using authentication through a header with a base64 key

I've already passed the parameters directly in the endpoint or in the content field

I've tried different content types

I always get the same error.

 

Does anyone have a clue about what could be causing the error?

Follow below the form:

find_real_file.png

Thank you

11 REPLIES 11

Greg42
Mega Guru

Try using API Explorer and see if you have the same issue.

Geetanjali Khy2
Mega Guru

Hello,

Please refer to below KB:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0725785

Let me know if the KB resolves the issue.

 

Please Mark Correct/Helpful, if it is helpful.

 

 

Abhinay Erra
Giga Sage

That is weird. I have not encountered anything like this before. Go to node log file browser and check the node logs to see if that gives you any clue

Hi Abhinay Erra,

I have found nothing there.

This is really weird. I've tried in other instance and I receive exactly the same error.

Can you replicate this in your personal developer instance? I can look into it.