You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Unregistered component suite resources return HTTP 500 instead of 404 #4211
Browser: not applicable; reproduced with the Flask test client.
Describe the bug
A GET request for an unregistered component suite resource raises dash.exceptions.DependencyException in validate_js_path. The exception propagates from Dash.serve_component_suites and Flask returns HTTP 500. An unregistered package name produces the same result.
Requests for nonexistent assets can occur during automated scans or due to stale URLs. Returning 500 makes these requests appear as server errors and can trigger monitoring alerts. A normal registered resource, /_dash-component-suites/dash/dcc/async-dropdown.js, returned 200 in the same test.
This was previously reported in #393, which is closed; the behavior is still reproducible in Dash 3.4.0.
Expected behavior
Return HTTP 404 for unregistered component suite packages and paths. Continue serving registered assets normally, including existing cache behavior, and keep genuine unexpected server errors as HTTP 500.
One possible approach would be to translate DependencyException to a 404 specifically around validate_js_path in serve_component_suites, rather than handling the exception globally.
Activity
T4rk1n commentedon Nov 30, 2026
Fix in progress in #4216.