I’m experiencing an issue with my Dash app deployed on Windows IIS. The app uses a multipage setup with Dash Pages. Occasionally, I encounter performance problems where the app loads normally, but most of the callbacks do not respond.
Upon inspecting the network tab in my browser, I noticed that the https://*/_dash-dependencies endpoint, which should return all registered callbacks, only lists three:
What version of Dash are you using? Is your app running in debug mode? Is your app hot reloading or encountering errors and the whole thing restarting?
If you are encountering errors and the app is reloading, you should utilize and on_error handler in Dash that is new, and send yourself an email to send the traceback to yourself.
In instances where you are using gunicorn and the app is hosted, sometimes the app will crash from an error and you won’t even know because it restarts automatically. This is what it sounds like you are encountering.
I am using dash == 2.14.2, this is production app so no debug mode.
I am not sure what do you mean by:
Is your app hot reloading or encountering errors and the whole thing restarting?
I am not seeing any visible errors (neither in the app nor in the logs), but thanks for the on_error suggestion. It seems like the app is functioning - I can navigate through different pages and layouts, but my callbacks are not working. It doesn’t appear that the app has crashed. As I mentioned before, this issue occurs infrequently (about 2-3 times a week), but it is crucial for me to resolve it.
For me, the app was crashing due to unexpected inputs, or something not working properly. The on_error should keep it from happening, and also let you know if things are failing silently.