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

HTTP client error log after successful request #48

Closed
Ksisu opened this issue Oct 20, 2019 · 1 comment
Closed

HTTP client error log after successful request #48

Ksisu opened this issue Oct 20, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Ksisu
Copy link
Collaborator

Ksisu commented Oct 20, 2019

30 seconds after successful login with GitHub provider, got some ERROR log. I think the root problem is somewhere in the AkkaHttpWrapper because there is two calls and in the log the akkaSources are:

{"@timestamp":"2019-10-20T11:09:11.165+02:00","@version":"1","message":"Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds.","logger_name":"akka.http.impl.engine.client.PoolGateway","thread_name":"tutelar-system-akka.actor.default-dispatcher-5","level":"INFO","level_value":20000,"sourceThread":"tutelar-system-akka.actor.default-dispatcher-2","akkaSource":"tutelar-system/Pool(shared->https://github.com:443)","sourceActorSystem":"tutelar-system","akkaTimestamp":"09:09:11.163UTC"}
{"@timestamp":"2019-10-20T11:09:11.174+02:00","@version":"1","message":"Pool is now shutting down as requested.","logger_name":"akka.http.impl.engine.client.PoolGateway","thread_name":"tutelar-system-akka.actor.default-dispatcher-5","level":"INFO","level_value":20000,"sourceThread":"tutelar-system-akka.actor.default-dispatcher-2","akkaTimestamp":"09:09:11.164UTC","akkaSource":"tutelar-system/Pool(shared->https://github.com:443)","sourceActorSystem":"tutelar-system"}
{"@timestamp":"2019-10-20T11:09:11.178+02:00","@version":"1","message":"Outgoing request stream error","logger_name":"akka.actor.ActorSystemImpl","thread_name":"tutelar-system-akka.actor.default-dispatcher-5","level":"ERROR","level_value":40000,"stack_trace":"akka.http.impl.engine.client.pool.NewHostConnectionPool$HostConnectionPoolStage$$anon$1$Slot$$anon$2: Pool slot was shut down\n","sourceThread":"tutelar-system-akka.actor.default-dispatcher-2","akkaTimestamp":"09:09:11.174UTC","akkaSource":"akka.actor.ActorSystemImpl(tutelar-system)","sourceActorSystem":"tutelar-system"}

{"@timestamp":"2019-10-20T11:09:11.593+02:00","@version":"1","message":"Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds.","logger_name":"akka.http.impl.engine.client.PoolGateway","thread_name":"tutelar-system-akka.actor.default-dispatcher-4","level":"INFO","level_value":20000,"sourceThread":"tutelar-system-akka.actor.default-dispatcher-3","akkaSource":"tutelar-system/Pool(shared->https://api.github.com:443)","sourceActorSystem":"tutelar-system","akkaTimestamp":"09:09:11.592UTC"}
{"@timestamp":"2019-10-20T11:09:11.593+02:00","@version":"1","message":"Pool is now shutting down as requested.","logger_name":"akka.http.impl.engine.client.PoolGateway","thread_name":"tutelar-system-akka.actor.default-dispatcher-4","level":"INFO","level_value":20000,"sourceThread":"tutelar-system-akka.actor.default-dispatcher-3","akkaTimestamp":"09:09:11.593UTC","akkaSource":"tutelar-system/Pool(shared->https://api.github.com:443)","sourceActorSystem":"tutelar-system"}
{"@timestamp":"2019-10-20T11:09:11.594+02:00","@version":"1","message":"Outgoing request stream error","logger_name":"akka.actor.ActorSystemImpl","thread_name":"tutelar-system-akka.actor.default-dispatcher-4","level":"ERROR","level_value":40000,"stack_trace":"akka.http.impl.engine.client.pool.NewHostConnectionPool$HostConnectionPoolStage$$anon$1$Slot$$anon$2: Pool slot was shut down\n","sourceThread":"tutelar-system-akka.actor.default-dispatcher-3","akkaTimestamp":"09:09:11.593UTC","akkaSource":"akka.actor.ActorSystemImpl(tutelar-system)","sourceActorSystem":"tutelar-system"}
[INFO] Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds.
[INFO] Pool is now shutting down as requested.
[ERROR] Outgoing request stream error
@Ksisu Ksisu added the bug Something isn't working label Oct 20, 2019
@Ksisu
Copy link
Collaborator Author

Ksisu commented Oct 20, 2019

akka/akka-http#2728
The info logs are normal. And the errors can be fixed by config:

akka {
  http {
    client {
      idle-timeout = 120 s
    }
    host-connection-pool {
      idle-timeout = 150 s
    }
  }
}
(the client idle timeout have to smaller then host idle timeout)

Ksisu added a commit that referenced this issue Oct 20, 2019
@Ksisu Ksisu closed this as completed Oct 20, 2019
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