Spring Cloud 客户端报错:- was unable to send heartbeat!
Posted 爱叨叨的程序狗
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Spring Cloud 客户端报错:- was unable to send heartbeat!相关的知识,希望对你有一定的参考价值。
微服务启动时报错:
2021-05-18 21:25:44.644 WARN 5452 — [tbeatExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: null
2021-05-18 21:25:44.644 ERROR 5452 — [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_SERVICE-HI/LAPTOP-3BVBK0KA:service-hi:8763 - was unable to send heartbeat!
问题原因
Eureka客户端无法发送心跳到服务端
解决方案
查看客户端启动类是否添加服务注册、发现注解。
@EnableEurekaClient
@EnableDiscoveryClient
以上是关于Spring Cloud 客户端报错:- was unable to send heartbeat!的主要内容,如果未能解决你的问题,请参考以下文章
spring cloud Stream input和output重名报错
@EnableAsync annotation metadata was not injected Spring容器启动后访问Servlet报错
Spring Boot报错:java.lang.IllegalArgumentException: An invalid character [..] was present in the Cooki
SpringBoot引入openfeign 报错:spring-cloud-starter-openfeign:unknown
spring cloud gateway 报错 Unable to find GatewayFilterFactory with name