API Getting authenticated in postman but not in servicenow

subin ps1
Tera Contributor

Hi ,

 

We are doing an outbound integration, for that we have created a post rest message and we are getting

 

RESPONSE : "{"error":{"code":"AuthorizationFailed","message":"The authentication credentials are not valid."}}"

 

ERROR Message : Method failed: (*****************************)*with code: 401 - Invalid username/password combo

 

the end point not needed any user name and password , we have configured authentication type as no authentication as well.

 

while we try to do the same testing in postman we are able to get the success message .what could be the reason for it.

 

Thanks in advance.

 

 

2 REPLIES 2

Aaron Duncan
Mega Sage

We ran into something similar with an integration using REST. Look at the special characters of the password. We had a password set that the script didn't handle correctly. Updating the password to exclude that character worked for us.

Jesse_H
Mega Sage

I just realized what the problem was for me: there is a character limit on the Endpoint field so the URL was getting cut off and I was getting that authorization error.