Facing Issue on Javascript Policy while enabling streaming in TargetEndPoint

plvndinesh
Participant II

Hi i created a reverse proxy and enabled streaming in it.

1.The time taken to get responsce from backend is 5 min.

2.I am doing some filtering in javascript policy in targetendpoint responce flow

the policy is executing before responsce is coming from backend and showing no responsce in console.

3.How to keep wait the execution of javascript policy until response coming from backend.

0 1 171
1 REPLY 1

sidd-harth
Participant V

AFAIK, when streaming is enabled, the policies no longer have access to the message content.

Only policies which do not interact with the req/resp body, such as authentication or message logging policies can be used.