GitHub user dosubot[bot] added a comment to the discussion: 404 Not Found When Calling `/api/v1/dashboard/:id/embedded` Despite Valid Login + CSRF
<!-- Answer --> The warning about `'werkzeug.local.LocalProxy' is not mapped` happens when Superset tries to add a user object to the DB session for logging, but instead gets a thread-local proxy object (not a real SQLAlchemy model). This is usually a side effect of session/user context issues, not the direct cause of your 404. It's often triggered by version mismatches or incomplete asset builds—Superset now requires Python 3.10/3.11 and Node.js 20.x; older versions can cause this and other subtle bugs [details](https://github.com/apache/superset/issues/35823). The 404 from `/api/v1/dashboard/:slug/embedded` is almost always due to a session or CSRF mismatch, especially if the dashboard works in the UI and embedding is enabled. Make sure you call `/api/v1/security/csrf_token/` with the `Authorization` header after login, and persist the resulting session cookie and CSRF token for all requests to embedded endpoints. If you’re running Superset in Docker, try cleaning up old volumes (`docker compose down -v`) and ensure you’re using a stable release (like 5.0.0) with properly built frontend assets. This should resolve both the warning and the 404 [see fix](https://github.com/apache/superset/pull/33025). <!-- 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/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/422fbf7d-c640-4a3a-9bb7-c44e7460e2cf?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/35997) GitHub link: https://github.com/apache/superset/discussions/35997#discussioncomment-14879383 ---- 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]
