We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
To be able to detect which service did not respond within timeout, attribute "serviceId" should be set for ReadTimeoutException.
attribute "serviceId" is null
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
micronaut-core/http-client-core/src/main/java/io/micronaut/http/client/exceptions/ReadTimeoutException.java
Line 29 in 2395c23
micronaut-core/http-client-core/src/main/java/io/micronaut/http/client/exceptions/HttpClientException.java
Line 57 in 2395c23
This set attribute "serviceIdLocked" to true, which then never allows to set the "serviceId". See
Line 79 in 2395c23
No response
Micronaut Core 4.8.11 Micronaut Platform 4.8.2
The text was updated successfully, but these errors were encountered:
Fix HttpClientException serviceId
905540e
Fixed micronaut-projects#11794
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
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
micronaut-core/http-client-core/src/main/java/io/micronaut/http/client/exceptions/ReadTimeoutException.java
Line 29 in 2395c23
and
micronaut-core/http-client-core/src/main/java/io/micronaut/http/client/exceptions/HttpClientException.java
Line 57 in 2395c23
This set attribute "serviceIdLocked" to true, which then never allows to set the "serviceId".
See
micronaut-core/http-client-core/src/main/java/io/micronaut/http/client/exceptions/HttpClientException.java
Line 79 in 2395c23
Environment Information
No response
Example Application
No response
Version
Micronaut Core 4.8.11
Micronaut Platform 4.8.2
The text was updated successfully, but these errors were encountered: