java.lang.AssertionError: expected OnNext, found OnError(java.util.concurrent.CompletionException: akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://RecipeGlobalRateLimit/user/limiter#543672132]] after [2000 ms]. Sender[null] sent message of type "docs.stream.javadsl.cookbook.RecipeGlobalRateLimit$Limiter$WantToPass".

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by johanandren
, 10 months ago
expected OnNext, found OnError(java.util.concurrent.CompletionException: akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://RecipeGlobalRateLimit/user/limiter#543672132]] after [2000 ms]. Sender[null] sent message of type "docs.stream.javadsl.cookbook.RecipeGlobalRateLimit$Limiter$WantToPass".
java.lang.AssertionError: expected OnNext, found OnError(java.util.concurrent.CompletionException: akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://RecipeGlobalRateLimit/user/limiter#543672132]] after [2000 ms]. Sender[null] sent message of type "docs.stream.javadsl.cookbook.RecipeGlobalRateLimit$Limiter$WantToPass".
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:21)
at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.