Forum Discussion
Apologies, I started a new snap to try out your method and it was Execute only. Now I am getting an error. I think that is an improvement over nothing, but need to figure it out.
Ok, the default Snap Execution of Execute Only explains why you weren’t getting any output when validating. Actually, I don’t think the JSON.stringify($entity)
is really necessary, since $entity
in this context will implicitly convert the input data to a JSON string.
It looks like the web service you’re invoking needs some authentication, and there are different ways of handling that. Please check the docs for the target web service regarding the required authentication.
Did you configure your REST snap with an error view? If so, see if the error_entity field in the error document tells you anything useful.
The error view output tells the same story, that it is forbidden. We are asking another engineer who has worked on external APIs as well. We aren’t sure if it is a security/whitelisting issue. I appreciate your help. I might get back here for questions again if there is anything else on the SnapLogic side.