Portal Published API endpoints fail with gateway Distruted Rate Limi (DRL) feature
search cancel

Portal Published API endpoints fail with gateway Distruted Rate Limi (DRL) feature

book

Article ID: 391868

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

API calls are portal published API using  Rate & Quota Policy Template-2.0.5

The Rate limit template includes the new preview assertion “Apply Distruted Rate Limit”

Only using the Quato limit to Redis they did not configure Rate/Limiter in the system .properties

System.properties

# Configuration properties for shared state extensions.

com.l7tech.server.extension.sharedKeyValueStoreProvider=redis

com.l7tech.server.extension.sharedCounterProvider=redis

com.l7tech.server.extension.sharedClusterInfoProvider=ssgdb

Error in SSG log

2025-03-21T06:29:27.595-0700 INFO    275  com.l7tech.server.message: Processing request for service: <service_name> [/<URI>]

2025-03-21T06:29:27.595-0700 WARNING 275  com.l7tech.server.MessageProcessor: 2: service is resolved but the corresponding policy is invalid for service GOID f184aa693af52c673a178d52705100f3 (<service_name>).  Exception caught! 

2025-03-21T06:29:27.595-0700 INFO    275  com.l7tech.server.MessageProcessor: 3017: Policy evaluation for service <service_name>[f184aa693af52c673a178d52705100f3] resulted in status 500 (Internal Server Error)

2025-03-21T06:29:27.595-0700 WARNING 275  com.l7tech.server.message: Message was not processed: Internal Server Error (500)

Environment

Gateway 11.1.1

Cause

Issue is related to Gateway feature DRL when it's not configured.  Resulting in endpoint calls failing before any processing with exception

Resolution

Workaround: Configure sharedRateLimiterProvider in system.properties:

com.l7tech.server.extension.sharedRateLimiterProvider=redis

Code Fix: This scinario is addressed in 11.1.2 release