mulesoft / api-policies

18 stars 34 forks source link

The policy is failing when running on CloudHub/API Portal #6

Open trknz opened 8 years ago

trknz commented 8 years ago

CloudHub, AG 2.2.0 Tried applying the policy on an API. The below response is produced

Execution of the expression "                                       
                                        app.registry['lock'].lock();
                                        if (!app.registry['sn'].contains(key))
                                            app.registry['sn'].store(key, payloadBck);
                                        app.registry['lock'].unlock();                                      
                                        " failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: String

:

jonathanptew commented 7 years ago

I get this same issue with the Response Caching Policy on the On Prem version of AG 2.2.0.