-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Line 29 in 2395c23
super("Read Timeout", null, true); |
and
Line 57 in 2395c23
serviceIdLocked = true; |
This set attribute "serviceIdLocked" to true, which then never allows to set the "serviceId".
See
Line 79 in 2395c23
if (serviceIdLocked) { |
Environment Information
No response
Example Application
No response
Version
Micronaut Core 4.8.11
Micronaut Platform 4.8.2
Metadata
Metadata
Assignees
Labels
Type
Projects
Status