Open denyskonakhevych opened 1 year ago
Hi @denyskonakhevych
first we have some questions regarding your issue:
This is our current understanding:
The first log message is a warning, that the registration failed due to TimeoutException. But as the client is continuing to try to register, this is just a warning, not error and the stacktrace is not logged. Also the same error will not be logged again as warning, just debug (as the message says). So there may be more failing tries.
The last log message is the successful registration.
In between, there is something trying to access a response which is aleady closed. As the connection is closed, the response is in an invalid state for the requested operation and the Exception is thrown. This probably belongs to the connection timeout. As there are no timestamps we cannot say if is belonging to the first warning or to a later try that is not logged. Anyways, in the stacktrace there is nothing from spring boot admin, so we cannot say if we are causing this and what we can do to prevent this log message.
@erikpetzold Timestamps in logs were omitted, but it looked like there was a failed attempt to register application. It happens from time to time. We have alert mechanism that reacts on unhandled exceptions and that's the case for us
Well.. it looks like in ReactiveRegistrationClient::register
you use .timeout()
method from Mono
but, but probably that somehow unexpected behaviour for webClient
. Maybe instead timeout for http connection would be more expected behaviour?
Added PR that should fix this issue https://github.com/codecentric/spring-boot-admin/pull/2845
Spring Boot Admin Server information
Version: 3.1.6
Spring Boot version: 3.1.3
Configured Security: no auth, service is not exposed outside
Webflux or Servlet application: Webflux
Client information
Spring Boot versions: 3.1.3
Used discovery mechanism: self registration
Webflux or Servlet application: Servlet
Description
Following exception is observed:
But, as I understand, expected behaviour should be timeout exception