Kong rate-limiting-advanced plugin error

I am using Kong Enterprise 0.36-2 with Postgres9.6.14. I followed instructions in the page https://docs.konghq.com/hub/kong-inc/rate-limiting-advanced/ to create the rate-limiting-advanced plugin :

curl -i -X POST https://kong-admin-api-******/services/abcd/plugins
–data name=rate-limiting-advanced
–data config.limit=10,100
–data config.window_size=60,3600
–data config.sync_rate=10

and I got an error response :

{“message”:“2 schema violations (config.limit: {\n “expected a number”\n}; config.window_size: {\n “expected a number”\n})”,“name”:“schema violation”,“fields”:{“config”:{“window_size”:[“expected a number”],“limit”:[“expected a number”]}},“code”:2}%

the issue is similar to https://github.com/Kong/kong/issues/4344
and it worked after modifying the command to:
curl -i -X POST https://kong-admin-api-****/services/abcd/plugins
–header ‘Content-Type: application/json’
–data ‘{ “name”: “rate-limiting-advanced”, “config”: { “limit”: [10, 100], “sync_rate”:10,“window_size”:[60,3600]}}’


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ