Skip to content

org.springframework.web.reactive.function.client.WebClientRequestException: Connection reset #935

New issue

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

Open
wangl1989 opened this issue May 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wangl1989
Copy link

如果连续发送请求没有问题,但是如果中间间隔一段时间没有发送聊天对话的请求之后再次发送这个请求就会必定出现这个问题。更加奇怪的是,出现了这个问题之后,如果我再次发起聊天请求,又能正常发送并且不会报错。
我在网上搜了以下大多说是连接池的问题,让我使用自定义的HttpClient来替换系统默认的自动配置的。
但是我在config中专门写了一个HttpClient注入进去之后发现ChatClient并没有调用我单独注入的bean。

@yuluo-yx yuluo-yx added the bug Something isn't working label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants