API Getting authenticated in postman but not in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 07:10 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 08:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 02:17 PM
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.