报错代码
com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance after all servers([http://scrm-nacos-pro.111yao.cn:8848]) tried: <html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Tue Mar 23 10:30:38 CST 2021</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>receive invalid redirect request from peer 172.17.107.132</div></body></html>
com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance after all servers([http://scrm-nacos-pro.111yao.cn:8848]) tried:server is DOWN now, please try again later!
报错原因:
nacos集群问题,java链接nacos是通过主机名链接,但是集群里面配置的是IP所以才会报错注册不进去。
解决方案:
更改nacos配置信息把IP全部替换成主机名称即可
版权声明:本文为qq_42554949原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。