Closed chendanshuang closed 6 years ago
Hi @shuangstar,
This was a bug that we fixed recently. If you check this file https://github.com/hellofresh/janus/blob/master/pkg/plugin/oauth2/loader.go#L48 There is an option that you can define if you wanna use rate limit on this endpoint or not.
By default, it's not enabled. Also, in case you want to use the rate limit the correct format is 10-S
(10 req/sec), 50-M
(50 req/min) and so on.
Hope this helps.
I add an api def as below with oauth2 plugin:
Unfornatelly, oauth2 is not loaded successully. I found a error in logs:
ERRO[1073] Not able to create rate limit error="incorrect format ''" name=local
I can not understand why ratelimit is required oauth2 plugin? I haven't found any case like this in all docs. If ratelimit is need, what's the correct format? Thx!
Below is detailed logs to handle this request.