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

Honestly, I’m stumped. This would take more time to investigate. If you haven’t submitted a ticket with our Support team, I suggest doing so now. Sorry I couldn’t find an answer.

dmiller
Former Employee

I moved Garrett’s thread to API query invalid in SnapLogic, but valid in Postman to separate the issue as it’s slightly different.


Diane Miller

Garrett
New Contributor II

I have tried tons of combinations of these and none of them worked. So sending a screen shot really is not very valuable.

image

tharunm
New Contributor II

Everyone,
I hope this issue cleared by now, just posting this so that it helps someone when they check for solutions.
I’ve run into a similar issue with a weather API. Two things to be modified here. I see that the query parameter values aren’t toggled, that’s the reason the REST GET isn’t fetching the data. and the service URL should be within quotes, e.g. “https://example.com/product?