admin管理员组文章数量:1608811
ioty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.2.123:8848
在做商品甄选项目时候,配置了网关,代码写的都是一样,但是在请求时候就是会报以下错误。
排查了很久,我以为nacos可以在配置文件中单独写端口号,后来发现并不是。
我的nacos版本是v2.2.2
[ERROR] org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler [48d40e6a] 500 Server Error for HTTP GET "/api/product/category/findCategoryTree"
ioty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.2.123:8848
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ com.alibaba.csp.sentinel.adapter.spring.webflux.SentinelWebFluxFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP GET "/api/product/category/findCategoryTree" [ExceptionHandlingWebHandler]
Original Stack Trace:
Caused by: java.ConnectException: Connection refused: no further information
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946)
at ioty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
at ioty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at ioty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
at ioty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at ioty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at ioty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at ioty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at ioty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at ioty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:840)
只需要将这个
改成这个就好了
本文标签: ChannelAbstractChannelIONettyrefused
版权声明:本文标题:io.netty.channel.AbstractChannel$AnnotatedConnectException Connection refused no further information 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1728549594a1163264.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论