micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6.07k stars 1.06k forks source link

NoSuchBeanException: No bean of type [io.github.resilience4j.consumer.EventConsumerRegistry<io.github.resilience4j.ratelimiter.event.RateLimiterEvent #7695

Open marun790 opened 2 years ago

marun790 commented 2 years ago

Expected Behavior

Rate limit should work without any issue

Actual Behaviour

When we enable below configuration, getting an run time error while calling the api resilience4j: ratelimiter: enabled: true

Steps To Reproduce

with the below configuration enabled resilience4j: ratelimiter: enabled: true

Environment Information

JDK: 17 implementation("io.github.resilience4j:resilience4j-consumer:1.7.1") implementation("io.github.resilience4j:resilience4j-micronaut:1.7.1") micronaut version: from 3.5.2

Example Application

No response

Version

3.5.2

mstepan commented 1 year ago

To fix mentioned above problem, you should add the following dependency to you pom.xml file:

    <dependency> 
      <groupId>io.github.resilience4j</groupId>
      <artifactId>resilience4j-consumer</artifactId>
      <version>${resilience4j.version}</version>
    </dependency>

Also check https://github.com/resilience4j/resilience4j/issues/1606