Dash components not loading

I have a dashboard using django-dash and the whole day I’ve been getting an empty screen, it rarely loads fine. Tried multiple browsers and devices and it only sometimes work as intended. I looked at the console logs and it seems like a CDN (unpkg) issue (logs below), I could be wrong ofc. Is there a way to avoid these problems by hosting these components myself? I’m also curious about how much time these problems last (if it is indeed a CDN issue).

Log

vo:4 The key “text/html” is not recognized and ignored.
dash_core_components-shared.js:1 Failed to load resource: the server responded with a status of 500 ()
bundle.js:1 Failed to load resource: the server responded with a status of 500 ()
dash_html_components.min.js:1 Failed to load resource: the server responded with a status of 500 ()
dash_core_components.js:1 Failed to load resource: the server responded with a status of 500 ()
react-dom.production.min.js:125 Error: dash_html_components was not found.
at br (dash_renderer.min.js:2:84028)
at ta (dash_renderer.min.js:2:130677)
at oa (dash_renderer.min.js:2:131193)
at ra (dash_renderer.min.js:2:130933)
at ts (dash_renderer.min.js:2:173575)
at Bh (react-dom.production.min.js:126:456)
at Dj (react-dom.production.min.js:162:476)
at unstable_runWithPriority (react.production.min.js:25:260)
at Da (react-dom.production.min.js:60:280)
at xb (react-dom.production.min.js:162:231)
Me @ react-dom.production.min.js:125
react.production.min.js:24 Uncaught Error: dash_html_components was not found.
at br (dash_renderer.min.js:2:84028)
at ta (dash_renderer.min.js:2:130677)
at oa (dash_renderer.min.js:2:131193)
at ra (dash_renderer.min.js:2:130933)
at ts (dash_renderer.min.js:2:173575)
at Bh (react-dom.production.min.js:126:456)
at Dj (react-dom.production.min.js:162:476)
at unstable_runWithPriority (react.production.min.js:25:260)
at Da (react-dom.production.min.js:60:280)
at xb (react-dom.production.min.js:162:231)

Thank you guys for your time! :slight_smile:

For anyone having the same problem in the future, I solved this using the dpd-static-support package.
Relevant sources of info here:
https://django-plotly-dash.readthedocs.io/en/stable/configuration.html
https://django-plotly-dash.readthedocs.io/en/stable/local_assets.html

2 Likes