Forum Discussion
Hi there! Thanks for your help. Here is what I am looking at now, still no output:
Mapper -
Mapper validation output -
POST Snap:
Pipeline:
Edit: I will add that I did try simply copying the body into the mapper with “$” in the Post snap but with the same (lack of) results.
Change HTTP entity from $entity to JSON.stringify($entity).
- ariana5 years agoNew Contributor
Hi ptaylor, thank you for the addition. Do I need to change any other settings if doing that? I am not getting output still ☹️
This is the preview I get when I hover over stringify- is that what I would want?
- ariana5 years agoNew Contributor
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.
- ptaylor5 years agoEmployee
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$entityin 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.
- ptaylor5 years agoEmployee
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.