错误概述
service启动报错,显示服务发起注册的时候找不到nacos
failed to req API:/nacos/v1/ns/instance after all servers([localhost:8845]) tried: ErrCode:400, ErrMsg:<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'>Thu Aug 31 10:33:27 CST 2023</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>receive invalid redirect request from peer 127.0.0.1</div></body></html>
解决方法
在文件夹下nacos3\data\protocol\raft\naming_persistent_service\meta-data的raft_meta文件
清空文件缓存内容
重写启动nacos
启动成功