Skip to content
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

[Feature Request] Callback Errors on production environments with Debug=False #2348

Open
BSd3v opened this issue Dec 1, 2022 · 2 comments · May be fixed by #2829
Open

[Feature Request] Callback Errors on production environments with Debug=False #2348

BSd3v opened this issue Dec 1, 2022 · 2 comments · May be fixed by #2829

Comments

@BSd3v
Copy link
Contributor

BSd3v commented Dec 1, 2022

Is your feature request related to a problem? Please describe.
When errors occur during callbacks on a production environment, with debug=False. This breaks the production and more than likely restarts the worker.

Describe the solution you'd like
When starting up the server, allow for a mailbox item like smtp to be passed in order to send error alerts with traceback messages to the identified email address. ie app.run(mail=mail, error_to=emailaddress) Then, when an error occurs, raise PreventUpdate or some other standard error message, along the lines of "IT has been notified of the error that just occurred."

Describe alternatives you've considered
Wrapping all callbacks with the try except clause where an alert is sent to my email.

@vsisl
Copy link

vsisl commented Apr 17, 2024

This would be a cool feature! +1

@BSd3v
Copy link
Contributor Author

BSd3v commented Apr 18, 2024

Thanks @vsisl

I have a PR that will address this request, although not quite the same way that I initially suggest here:

#2829

In this there is also a link to a forum post that will allow you to apply this universal error handling today.

@ndrezn ndrezn linked a pull request Apr 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants