I have configured the quota plugin and started the microgateway. I have added the quota policy into the config file of the edge microgateway. I run the curl command with Bearer token but the quota fault is not raised at all. I have placed quota after oauth in the org-eval-config.yaml file sequence. I am using node version 6.9.1 and edgemicro version is 2.5.7
I went over the following links:
https://community.apigee.com/questions/14983/how-do-i-get-quota-working-in-microgateway.html
https://www.youtube.com/watch?v=8xWgWyNL3zM&index=8&list=PLsWqc60hQz4cUyaxNBU2tHyhrkBu4kfPJ
But the problem still prevails.
Suggestions??
Solved! Go to Solution.
There was a bug in the quota plugin. Can you please try with 2.5.27-beta?
npm install -g edgemicro@beta
There was a bug in the quota plugin. Can you please try with 2.5.27-beta?
npm install -g edgemicro@beta
I tried it with edgemicro beta and now it is giving me this error:
(node:742) TimeoutOverflowWarning: 2678400000 does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
Also, when I run edgemicro verify, it is giving me this with quota:
verifying quota with configured products: FAIL
I have the quota set as 4 per minute in the API product which is linked to the edgemicro proxy. I do get the 200 response but the quota is not enforced.
It is working now. I had 4 processes for edgemicro which multiplied the quota by 4 giving me an error. When I specified 1 edgemicro process, the fault is raised. Thank you for your help.
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |