GitHub user dosubot[bot] added a comment to the discussion: Alerts and reports
feature not working. URL not found
<!-- Answer -->
The "URL not found" error for alerts and reports in Superset is almost always
caused by the `ALERT_REPORTS` feature flag not being enabled. This flag must be
set to `True` in your `superset_config.py` under `FEATURE_FLAGS` for the
endpoints and UI to be available. Without it, Superset will return a 404 for
all alerts and reports routes, regardless of other configuration settings.
Make sure your `superset_config.py` includes:
```python
FEATURE_FLAGS = {
"ALERT_REPORTS": True,
# ...other flags
}
```
You also need to have Celery (and a suitable broker like Redis or RabbitMQ)
running, as alerts and reports depend on background tasks for scheduling and
execution. If Celery isn't running, the UI may appear but reports won't
actually process or send.
If you enable the flag and still see 404s, double-check that your Superset
instance is loading the correct config file and that you don't have a typo in
the flag name or config structure.
References:
- [superset/config.py - ALERT_REPORTS flag and Celery
requirements](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py)
- [superset/views/alerts.py - Endpoint gating by feature
flag](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/alerts.py)
- [superset/initialization/__init__.py - Menu registration and feature flag
check](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/initialization/__init__.py)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/caa16671-1239-4fd3-87c3-c81165d15b87?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35642)
GitHub link:
https://github.com/apache/superset/discussions/35642#discussioncomment-14676871
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]