Skip to content

Confusing WebClient exception message in case of Reactor-Netty PrematureCloseException during response #33127

Closed
@david0

Description

@david0

We are using WebClient+netty. We have run into
reactor.netty.http.client.PrematureCloseException: Connection prematurely closed DURING response.

Unfortunately the WebClientResponseException.getMessage() will just return
200 OK from POST http://localhost:50457/foo
in this case, not giving any helpful detail what the problem was.

Maybe the original exception message (Connection prematurely closed DURING response) should be shown or just some generic An error happend while reading the response? Everything would be better than 200 OK from ...

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions