-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend: Disable error toasts for axios responses #2165
Comments
Hi @MichaelZett, thanks for suggesting this enhancement. We are planning to implement a configuration option for this in the future. If you need this asap, feel free to provide a PR. FYI: In Spring Boot Admin 3, we have introduced grouped by HTTP-Status code toast messages to reduce pollution. Regards |
Hi, do you have any example of setting the configuration in frontend? I wasn't able to find anything like that in docs (https://codecentric.github.io/spring-boot-admin/) Thanks, |
Hi @mdzunic, there is no config right now. As we stated above, we are planning to implement it but haven’t yet. If you need this asap, feel free to provide a PR. Regards |
Hi, we have just released version 2.7.9 of SBA that includes a property to enable toasts Sorry for the inconvenience. |
Since version 2.7.5 of Spring Boot Admin, we are getting a lot of 404 error toasts in our custom views because we are executing axios requests against our applications to see if an endpoint is available or not. We would rather avoid getting an error toast in the case of a 404 response because we also use that for optional endpoints and we don't want to maintain a list of apps that provide these endpoints but discover it.
Here is the axios interceptor responsible for the error toast: https://github.com/codecentric/spring-boot-admin/blob/2.7.7/spring-boot-admin-server-ui/src/main/frontend/utils/axios.js#L37
Would it be possible to add a configuration option to disable this toast in the custom views?
The text was updated successfully, but these errors were encountered: