I’ve just updated my Dash app to dash 1.0. Now, when I visit my dash app at http://localhost:5000/dash/trend, I now get this error:
POST http://localhost:5000/dash/trend/_dash-update-component 400 (BAD REQUEST)
When I go to http://localhost:5000/dash/trend/_dash-update-component in my browser, or cURL it, it just renders the same dash app as http://localhost:5000/dash/trend, so the problem seems to be that it’s treating this URL as an HTML endpoint instead of JSON.
My dash app is being used as part of a larger flask app, so I intialize it as:
app = MegaQcDash(routes_pathname_prefix='/dash/trend/', server=False)
And this subclass of Dash is defined as:
class MegaQcDash(dash.Dash):
"""
Subclass of Dash, which renders a jinja template rather than using the default HTML template
"""
def interpolate_index(self, **kwargs):
t = render_template('dash.html', **kwargs)
return t
Is this perhaps messing with the _dash-update-component
URL?