cancel
Showing results for 
Search instead for 
Did you mean: 

401 Error using Https in API REST GET call

debra_paponette
New Contributor

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

33 REPLIES 33

And are you saying that it worked in REST Get with http protocol but not with https?

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

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.

I ran the command on my pc but i am unfamiliar with curl. What should i be looking for to send you?

See response from curl i triedcurl curl2