modifier/martian and validation/cel conflicts

7 views
Skip to first unread message

Flavia Tripaldi

unread,
Dec 27, 2024, 4:40:11 PM12/27/24
to KrakenD Community
Hi,

with VALIDATION I am checking the response BODY from BACKEND first. Then I would like to TO EDIT the BODY before SERVING to CLIENT the response.

The issue is that if I EDIT THE BODY with modifier/martian the validation/cel is not going trought because the BODY is not matching.

I am 0% expert. Correct me if I am wrong but there is NO way to EXECUTE first validation/cel and then modifier/martian? Because I tried and in any case it seems that FIRST it gets MOTIFIED and AFTER VALIDATED before sending to client.

In the CONSOLE if I setup the BODY modification I get that the VALIDATION is not passed. 

"Error #01: request aborted by evaluator #0"

So I am pretty sure that VALIDATION occurs after MODIFICATION.

Also please note that THE BACKEND replies SOO SLOW (20s). Maybe the is creating

Also please note that I noticed that IF you put at the of the endpoint JSON the modifier/martian the RESPONSE will BE SO FAST. Like if the BACKEND was never REQUESTED. (EDIT: Just tested now again and I can confirm that it is like as if the MODIFIER is not even waiting for the response. Maybe it needs timeout)
Reply all
Reply to author
Forward
0 new messages