nacos本地集群搭建报错 receive invalid redirect request from peer 127.0.0.1

Caused by: com.alibaba.nacos.api.exception.NacosException: failed to req API:/nacos/v1/ns/instance after all servers([www.zw-dream.com]) tried: ErrCode:400, ErrMsg:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Dec 14 15:46:06 CST 2020
There was an unexpected error (type=Bad Request, status=400).
receive invalid redirect request from peer 127.0.0.1

 

从上图报错信息可知,接收到不正确的重定向请求来自127.0.0.1

nacos本地集群搭建报错 receive invalid redirect request from peer 127.0.0.1_第1张图片

由于机器不足,在不同端口启动nacos-server的集群配置文件cluster.conf中需使用真实ip,不然无法找到真正的实例,故改成

nacos本地集群搭建报错 receive invalid redirect request from peer 127.0.0.1_第2张图片

重启服务即可

你可能感兴趣的:(注册中心)