You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi i am running a service which makes lots of calls to some other service, lets say 10 calls per second.
The service runs properly but eventually there are periods when it starts to crash with
sttp.client3.SttpClientException$ReadException: Exception when sending request: POST https://xxxxx
at sttp.client3.SttpClientExceptionExtensions.defaultExceptionToSttpClientException(SttpClientExceptionExtensions.scala:25)
at sttp.client3.SttpClientExceptionExtensions.defaultExceptionToSttpClientException$(SttpClientExceptionExtensions.scala:9)
at sttp.client3.SttpClientException$.defaultExceptionToSttpClientException(SttpClientException.scala:24)
at sttp.client3.HttpClientAsyncBackend.adjustExceptions$$anonfun$1(HttpClientAsyncBackend.scala:147)
at sttp.client3.SttpClientException$$anon$1.applyOrElse(SttpClientException.scala:35)
at sttp.client3.SttpClientException$$anon$1.applyOrElse(SttpClientException.scala:34)
at zio.ZIO.tryRescue$1$$anonfun$1(ZIO.scala:359)
at scala.util.Either.fold(Either.scala:190)
at zio.ZIO.tryRescue$1(ZIO.scala:359)
at zio.ZIO.catchSome$$anonfun$1(ZIO.scala:361)
at zio.internal.FiberRuntime.runLoop(FiberRuntime.scala:1121)
at zio.internal.FiberRuntime.evaluateEffect(FiberRuntime.scala:381)
at zio.internal.FiberRuntime.evaluateMessageWhileSuspended(FiberRuntime.scala:504)
at zio.internal.FiberRuntime.drainQueueOnCurrentThread(FiberRuntime.scala:220)
at zio.internal.FiberRuntime.run(FiberRuntime.scala:139)
at zio.internal.ZScheduler$$anon$4.run(ZScheduler.scala:476)
Caused by: java.io.IOException: too many concurrent streams
at java.net.http/jdk.internal.net.http.Http2Connection.reserveStream(Http2Connection.java:484)
at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:106)
at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:94)
at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:369)
at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:553)
at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:406)
at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:398)
at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:409)
at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:342)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
Hi i am running a service which makes lots of calls to some other service, lets say 10 calls per second.
The service runs properly but eventually there are periods when it starts to crash with
Also its a POST request with some timeout a json body and some auth headers
in sttp code i do see
and also from the stack trace one can see its an IO exception with
too many concurrent streams
Any obvious solution ?
The text was updated successfully, but these errors were encountered: