admin管理员组

文章数量:1608826

最近在新搞公司后台的架构,准备用网关来聚合接口文档(swagger2生成),从注册中心自动获取生成。
按照各种网上教程,开始都很顺利。
然后突然有一个就网络超时访问不到了。
错误如下(Gateway)

ERROR 16752 --- [ctor-http-nio-1] a.w.r.e.AbstractErrorWebExceptionHandler :[33ba6ddd-346]  500 Server Error for HTTP GET "/xxx/v2/api-docs"

io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: (此处是服务器url,隐去)
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
	|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ HTTP GET "/xxx/v2/api-docs" [ExceptionHandlingWebHandler]
Stack trace:
Caused by: java.net.ConnectException: Connection timed out: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_65]
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_65]
	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty

本文标签: 网关文档SpringCloudZuulGateway