Add policies to your API Tutorial - Bug on Rate property in Spike Arrest

Not applicable

Hi,

While doing the "Add policies to your API" tutorial it seems I've found a bug.

I have the following code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SpikeArrest async="false" continueOnError="false" enabled="true" name="Spike-Arrest-1">
    <DisplayName>Spike Arrest-1</DisplayName>
    <Properties/>
    <Identifier ref="request.header.some-header-name"/>
    <MessageWeight ref="request.header.weight"/>
    <Rate>1pm</Rate>
</SpikeArrest>

According to the Tutorial, the Rate 1pm would allow me to have max os 2 request every 60 seconds but as you can see in the attachment file this is not happening.

out.txt

Can you validate please?

0 3 168
3 REPLIES 3

@João Henrique Roque Duarte , Welcome to Apigee Community.

Are you sure you have deployed the latest revision ? What does trace say ? Can you click on trace tab & make api call to see trace result & find out spike arrest actually executed or not ?

Keep us posted.

It seems it took some time to deploy the changes. It is now working correctly :).

Thanks for the input.!

Glad to know @João Henrique Roque Duarte, Thank you for the update.

Keep us posted moving forward if any.