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

dmiller
Former Employee

Do you have an error view on this REST Snap to see what it’s sending to the error_entity field?


Diane Miller

Hi yes i do,

image

dmiller
Former Employee

Strictly from my own stumbling blocks with REST APIs:

  • Make sure the expression toggle (the equal sign button) is not selected if you are passing straight text, but is if you are using an expression.
  • Make sure headers are in the HTTP Headers section, not the Query Parameters (I’ve done this more than once 😀 )
  • Any other headers needed like content-type?
  • Check for case-sensitivity.

Diane Miller

Yep expression box = sign is not toggled as i am passing text
the http headers are placed under headers
and the query is passed under the query

image