Skip to content

The service "noxlogic_rate_limit.storage" has a dependency on a non-existent service "snc_redis.default_client". #77

@pohlaniacz

Description

@pohlaniacz

Hi, after updating from 1.7.0 to newer versions I've get an error when clearCache is called:

The service "noxlogic_rate_limit.storage" has a dependency on a non-existent service "snc_redis.default_client".

Bug starts from updating to 1.81. I don't need to snc bundle because im using doctrine_cache. My config looks ok and it's working fine now:

doctrine_cache:
    providers:
        memcached_cache:
            memcached:
                connection_id: memcached
        redis_cache:
            redis:
                connection_id: redis

noxlogic_rate_limit:
    enabled: true
    storage_engine: "doctrine"
    doctrine_provider: redis_cache
    rate_response_exception: Api\AppBundle\Exception\RateExceededException
    rate_response_code: 429
    rate_response_message: 'You exceeded the rate limit'
    display_headers: true
    headers:
        limit: X-RateLimit-Limit
        remaining: X-RateLimit-Remaining
        reset: X-RateLimit-Reset

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions