The production environment is fine, but suddenly all front-end requests are cross-domain and the requests are 500. gateway reports an error.
reactor.core.Exceptions$ErrorCallbackNotImplemented:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0. All interfaces are reported.
The reason is that the gateway also integrates with springboot-admin, which opens the actuator endpoint of the application, leading to a code injection attack
Solution: Use nginx to intercept the path directly, add the following configuration to conf, and reload nginx.
location /actuator {
return 404;
}
Read More:
- Gateway Error: Cannot resolve org.springframework.cloud:spring-cloud-starter-gateway:unknown
- [Solved] net core HTTP Error 500.31 – Failed to load ASP.NET Core runtime HTTP Error 500.30 – ASP.NET Core
- SpringCloud: gateway module startup error [How to Solve]
- [Solved] Asp.Net Core IIS Error: HTTP Error 500.30 – ASP.NET Core app failed to start
- [Solved] Springcloud Add gateway to Startup Error: Exception encountered during context initialization – cancelling refresh
- [Solved] JMETER pressure measure with a lot of Ports Error: 504GATEWAY TIMEOUT
- [Solved] jinja2.exceptions.TemplateNotFound: index.html
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template [currentUserCartItems],
- [Solved] redis.exceptions.ResponseError: unknown command `KEYS`
- Qt5core.pdb is not loaded [How to Solve]
- [Solved] Could not find a package configuration file provided by “moveit_core“
- Error when Struts2 started Tomcat: org.apache.catalina.core.StandardContext filterStart
- [Solved] selenium.common.exceptions.WebDriverException: Message: An unknown server-side error
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- [Solved] C++ reason ncnn model error: Segmentation fault (core dumped)
- [How to Solve] Tesorflow: module ‘pandas.core.computation’ has no attribute ‘expressions’
- How to Solve Error: homebrew-core is a shallow clone.
- [Solved] jetson nano Error: Illegal instruction(core dumped)
- [Solved] Springboot Error: org.apache.catalina.core.ContainerBase : A child container failed during start
- [Solved] IP Core Map Compile Error: Buffers of the same direction cannot beplaced in series.