Scenario: CentOS virtual machine SpringCloud-Nacos Dubbo integration error reporting
failed to req API:/nacos/v1/ns/instance after all servers([192.168.56.101:8848, 192.168.56.102:8848, 192.168.56.103:8848]) tried: failed to req API:192.168.56.102:8848/nacos/v1/ns/instance. code:400 msg: <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’>Fri May 21 01:29:11 CST 2021</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>receive invalid redirect request from peer 192.168.56.101</div></body></html>
failed to req API:/nacos/v1/ns/instance after all servers([192.168.56.101:8848, 192.168.56.102:8848, 192.168.56.103:8848]) tried: failed to req API:192.168.56.102:8848/nacos/v1/ns/instance. code:400 msg: <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’>Fri May 21 01:29:11 CST 2021</div><div>There was an unexpected error (type=Bad Request, status=400).</div><div>receive invalid redirect request from peer 192.168.56.101</div></body></html>
Cause.
When the nacos service is started, the virtual machine’s enp0s3 NIC is used with an ip of 10.0.2.x
And 192.168.56.x is the address of the enp0s8 NIC
So the solution here is to open the configuration item in /nacos/conf/application.properties and specify the ip on it
When the nacos service is started, the virtual machine’s enp0s3 NIC is used with an ip of 10.0.2.x
And 192.168.56.x is the address of the enp0s8 NIC
So the solution here is to open the configuration item in /nacos/conf/application.properties and specify the ip on it
Read More:
- NACOS error com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance
- [Solved] com.alibaba.nacos.api.exception.NacosException: failed to req API
- Wechat payment API V3 payment notice asynchronous signature verification failed
- After Nacos started, the client worker log was printed all the time
- Caused by: java.lang.ClassNotFoundException: com.alibaba.nacos.api.naming.NamingMaintainService
- An error occurred trying to connect: get http: / / var / run/ docker.sock/v1 .21/containers/json?all
- Nacos failed to start [How to Solve]
- MongoDB:Failed: error connecting to db server: no reachable servers
- [Solved] Servers Install matlab 2018a error: license checkout failed -8
- module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’
- Docker Nacos deployment uses container name to access 400 bad request
- Nginx redirects the interfac /API to another interface/API
- Solution to the problem of failure to elect leaders when offline service is reported in Nacos
- C# Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type
- NS_ERROR_DOM_BAD_URI: Access to restricted URI denied
- VirtualBox for macOS NS_ ERROR_ Failure (0x80004005) problem solving record
- Error ns when starting VirtualBox virtual machine after upgrading kernel_ ERROR_ FAILURE
- Error when accessing Oracle: connected to an idle instance
- Android studio prompt: failed to instance one or more classes appcompattextview
- How to mine Bitcoin using Alibaba Cloud and Tencent Cloud servers (ubuntu)