Skip to content

ReadTimeoutException is missing "serviceId" #11794

Open
@frank-mueller-at-kiwigrid-com

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions