Open
Description
Expected Behavior
To be able to detect which service did not respond within timeout, attribute "serviceId" should be set for ReadTimeoutException.
Actual Behaviour
attribute "serviceId" is null
Steps To Reproduce
From reading the code https://github.com/micronaut-projects/micronaut-core/blob/4.9.x/http-client-core/src/main/java/io/micronaut/http/client/exceptions/ReadTimeoutException.java
you can see that the only existing constructor of ReadTimeoutException calls the constructor of its superclass HttpClientException with parameter "shared" true.
See
and
This set attribute "serviceIdLocked" to true, which then never allows to set the "serviceId".
See
Environment Information
No response
Example Application
No response
Version
Micronaut Core 4.8.11
Micronaut Platform 4.8.2