Azure / api-management-policy-snippets

Re-usable examples of Azure API Management policies
MIT License
341 stars 155 forks source link

@mikebudzynski, I couldn't add an issue in the Azure API Management repository. So, added the issue here. We are still not able to use policy expression in the rate-limit-by-key policy. I have attached the error screenshot for your reference. #67

Closed dibyaranjanjll closed 1 year ago

dibyaranjanjll commented 3 years ago

@mikebudzynski, I couldn't add an issue in the Azure API Management repository. So, added the issue here. We are still not able to use policy expression in the rate-limit-by-key policy. I have attached the error screenshot for your reference.

Error: Error in element 'rate-limit-by-key' on line 24, column 10: The 'calls' attribute is invalid - The value '@((int)context.Variables["api.NamedValue.Config.Json.Cache.Duration"])' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:int' - The string '@((int)context.Variables["api.NamedValue.Config.Json.Cache.Duration"])' is not a valid Int32 value.

image

Originally posted by @dibyaranjanjll in https://github.com/Azure/api-management-developer-portal/issues/1424#issuecomment-906989082

adrianhall commented 1 year ago

Not a problem in this repository.