Flask's DispatcherMiddleware not playing nice with Plotly's Dash

As @lukesingham mentioned at Hosting multiple Dash apps with uWSGI + Nginx,

I had the same experience. And the code below right after your dash_app solved the problem. Maybe you should try.

# In order to work on shinyproxy (and perhaps other middleware)
app_dash.config.supress_callback_exceptions = True
app_dash.config.update({
    # remove the default of '/'
    'routes_pathname_prefix': '',

    # remove the default of '/'
    'requests_pathname_prefix': ''
})