SpringCloud网关(Zuul/Gateway)聚合swagger2文档的一个坑

最近在新搞公司后台的架构,准备用网关来聚合接口文档(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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值