Prevent dumps as http reponse

Hello forum,

I have a simple flow service that has two services. The first gets username, password form a incoming call and the second is pub.client:http for a http GET request to a host.
Problem is that if the http.client fails the server returns 500 and includes the whole dump from the http client ! ! !
This includes the username and password … :frowning:
How to prevent this?
Also I’d like to get the reponsecode and use it in pub.setResponse.

Regards,
Plamen

Do you have a step bytes to string after the http call from the body/bytes or stream and that way you can capture or parse the response and setResponse accordingly the last step.

Also make sure you drop the vars for auth,data etc…in the http call pipelineout.

HTH,
RMG

I will use the SEQUENCE option for the flow service. I was not expecting that by default the service dumps everything to the http response body.

Cheers,
Plamen

Hope you know what to do from here having with handling with Try/Catch sequences (best practice)

HTH,
RMG

Plamen,

Can you also give a try using Post option and check are you having issue with that as well

Thanks,

Thanks guys,

With client:http doing POST I also have the dump sent back.

Regards,
Plamen