首页 > 解决方案 > 这个错误的原因是什么?那是因为连接从服务器端或客户端关闭吗?

问题描述

我正在使用 Spring webclient 连接到服务器。

我有时会收到此错误,是因为连接已从服务器端关闭还是问题出在客户端?

reactor.netty.http.client.PrematureCloseException:
    Connection prematurely closed DURING response

Suppressed:
reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
    Error has been observed at the following site(s):
            |_ checkpoint ? Body from GET https://*** [DefaultClientResponse]

标签: javaspring-bootspring-webfluxserver-sent-events

解决方案


推荐阅读