11-10-2020 09:59 AM
In house API call that works well in all browsers and postman returns “REST API service endpoint returned error result: status code = 401, reason phrase = Unauthorized, refer to the error_entity field in the error view document for more details” when using the REST snap
The following was tried and the issue persist
-Create account from REST GET similar to what is used to access API from browser (NTLM)
-Trust all certificates settings checked on REST snap
-‘Keep-alive’ connection added to Header settings
-Cookie details added to Header settings
Does anyone have any suggestion to assist in getting this error fixed
01-29-2021 11:04 AM
And are you saying that it worked in REST Get with http protocol but not with https?
01-29-2021 11:08 AM
yes It works using the http however the application that provided this API have been upgraded in our test environment and requires the use of HTTPS going forward. Our production environment needs to be updated but can’t because the current pipelines there that uses the APIs (HTTP) will stop working once we upgrade
01-29-2021 11:20 AM
Do you have the curl utility? If so, can you please try this? I want to see if it’s doing a redirect.
curl -v -o curl.out https://your-domain-name/
It would help to see just the output of this that appears in the console, not the contents of curl.out. The console output will show the handshake, response code, headers, etc.
01-29-2021 12:11 PM
I ran the command on my pc but i am unfamiliar with curl. What should i be looking for to send you?
01-29-2021 12:21 PM
See response from curl i tried