Rest message and Mid server - 401 - Invalid username/password combo

jonay2
Mega Contributor

Hi,

I'm trying to connect to a third party with Rest Message and Basic Auth, but when I try to test the connection, the rest of the message returns a "401 - Invalid username / password combo" error, but if I go into the core server, I open a browser and put the end point in url and I put the user / end point returns a JSON.

My question is what am I doing wrong? Why on the server can I access the endpoint and from servicenow I don't have access? when I do a test on the rest message with the related link "Test", the response body returns 'You do not have permission to view this directory or page'.

find_real_file.png

The Http header and Http query is empty.

find_real_file.png

Also I have tried this:

https://community.servicenow.com/community?id=community_question&sys_id=29658baddbd8dbc01dcaf3231f961972&view_source=searchResult

find_real_file.png

And i have the same result.

Thanks,

Jonay

 

1 ACCEPTED SOLUTION

Hi,

The proble have been resolved with this workarround: https://hi.service-now.com/kb_view.do?sysparm_article=KB0778973

Thanks,

Jonay

View solution in original post

6 REPLIES 6

The response seems to state about permission rather than about credentials. Not having permission implies credentials are good but there's acl missing. The service requires all access to the tables the api uses.

Hi,

The proble have been resolved with this workarround: https://hi.service-now.com/kb_view.do?sysparm_article=KB0778973

Thanks,

Jonay