Hi All
I am faced with a unique situation and a sev 1 prod defect. I have a Extract Variables policy for an API of the type
/online///validate?dataItem= (PUT - application/json)
This API validates the request and in the process , it extracts an attribute (say X) from the request payload and validates it.
The issue is it works fine for most requests , but for some it just dosent execute the Extract Variables policy. It does ot thow an error , but it does not pass on control to the next policy and when I see the error it give EOF error.
I have checked the following
-
no difference in the json payloads of the requests which are successful and which are failing
-
Content-Type - application/json
-
valid json request
-
If i remove the extract variables policy for the requests which are failing , it goes into the nest policy successfully and eventually fails (it will fail ofcoruse as the variable to be validated is not extracted)
I am really confused as to how the same policy can work for an API for some requests and not for others.
Is there a restriction on the maximum payload size for this policy to work ? Also please note I have request streaming enabled on this proxy . Is it the reason that for large requests, it is not able to extract the variable ? Also I have the policy added in the target flow