The following error occurred while accessing other project interfaces through the gateway
2021-11-01 17:01:28.244 ERROR 4732 --- [ctor-http-nio-2] a.w.r.e.AbstractErrorWebExceptionHandler : [5761064e-3] 500 Server Error for HTTP GET "/admin/user/list"
java.lang.IllegalStateException: Invalid host: lb://zkdn_admin
at org.springframework.cloud.gateway.filter.RouteToRequestUrlFilter.filter(RouteToRequestUrlFilter.java:86) ~[spring-cloud-gateway-server-2.2.6.RELEASE.jar:2.2.6.RELEASE]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ HTTP GET "/admin/user/list" [ExceptionHandlingWebHandler]
Stack trace:
at org.springframework.cloud.gateway.filter.RouteToRequestUrlFilter.filter(RouteToRequestUrlFilter.java:86) ~[spring-cloud-gateway-server-2.2.6.RELEASE.jar:2.2.6.RELEASE]
The reason is that the service name registered in Nacos has “”, which can be solved by changing the underscore to “-“.
Read More:
- Gateway forwards weboskct with an error ClassCastException
- SpringCloud GateWay Failed to instantiate [org.springframework.cloud.gateway.discovery.DiscoveryL…
- Nginx 502 Error: Failed to load resource: the server responded with a status of 502 (Bad Gateway)
- Vscode remote connection server reports an error: could not establish connection to “XXXXXX” [resolved]
- Invalid Host header
- Solution of invalid host header in vue-cli3
- ERROR 2005 (HY000): Unknown MySQL server host
- Cannot connect to MySQL server on “host” (113)
- Drupal Internal Server Error 500
- Error 2005 (HY000) unkonw MySQL server host…
- ValueError: check_ hostname requires server_ The solution record of the host name
- Invalid host header error in Vue using peanut shell agent
- Resolve zuul the HTTP status 500 – internal server error error error displayed after startup
- A solution to the default invalid host only mode of CentOS virtual machine in VirtualBox
- Solution of 500 internal server error reported by [SVN] TortoiseSVN
- invalid connection string format, a valid format is host:ip:port
- Django debug = false internal server error 500
- Zuul gateway routing URL and service ID configuration
- NetworkError: 500 Internal Server Error
- The server internal error that prevented it from fulfilling this request Error (Fixed)