Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResponseClosedException: Connection closed before response was received #44

Open
kschulst opened this issue Aug 29, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@kschulst
Copy link
Contributor

Etter oppgradering til Micronaut 4 ser vi innimellomg følgende i prod-loggen:
After upgrade to Micronaut 4.5, the following occurs occationally:

maskinporten-guardian-cont 10:47:19.561 [virtual-executor91931] INFO  n.k.f.m.Maskinportenklient - Adding access token to cache; access_token.scopes: '<REDACTED>', access_token.exp: Mon Aug 26 10:57:19 GMT 2024, expires_in: 599 seconds. Expires from cache in 479 seconds (Mon Aug 26 10:55:18 GMT 2024).
maskinporten-guardian-cont 11:01:34.786 [default-nioEventLoopGroup-1-7] ERROR i.m.s.t.j.s.j.HttpClientJwksClient - Exception loading JWK from https://<REDACTED>/auth/realms/ssb/protocol/openid-connect/certs
maskinporten-guardian-cont io.micronaut.http.client.exceptions.ResponseClosedException: Connection closed before response was received
maskinporten-guardian-cont     at io.micronaut.http.client.netty.DefaultHttpClient$BaseHttpResponseHandler.channelInactive(DefaultHttpClient.java:2094)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
maskinporten-guardian-cont     at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
maskinporten-guardian-cont     at io.netty.handler.codec.MessageAggregator.channelInactive(MessageAggregator.java:441)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
maskinporten-guardian-cont     at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
maskinporten-guardian-cont     at io.netty.handler.codec.http.HttpContentDecoder.channelInactive(HttpContentDecoder.java:235)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:303)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:274)
maskinporten-guardian-cont     at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1402)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:301)
maskinporten-guardian-cont     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:281)
maskinporten-guardian-cont     at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:900)
maskinporten-guardian-cont     at io.netty.handler.codec.http2.AbstractHttp2StreamChannel$Http2ChannelUnsafe$2.run(AbstractHttp2StreamChannel.java:797)
maskinporten-guardian-cont     at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
maskinporten-guardian-cont     at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
maskinporten-guardian-cont     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
maskinporten-guardian-cont     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)
maskinporten-guardian-cont     at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:994)
maskinporten-guardian-cont     at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
maskinporten-guardian-cont     at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
maskinporten-guardian-cont     at java.base/java.lang.Thread.run(Thread.java:1583)

Seems to be very similar to this micronaut-projects/micronaut-security#1633

We have upgraded to the latest version of Micronaut Platform (4.6) but this is still a problem

@kschulst kschulst added the bug Something isn't working label Aug 29, 2024
@kschulst kschulst self-assigned this Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant