GitHub user Nimishbansal-16 closed a discussion: Unable to embed dashboard for Superset 5.0.0. Csrf token issue maybe
Superset version: 5.0.0 I want to embed superset dashboard on my ui, for which I am using superset-sdk, where from ui a guest user is being used to generate token, by following this - https://github.com/apache/superset/discussions/29824 This setup was working when I was using these versions - 4.0.0 or 4.1.3.rc1, but after upgrading to 5.0.0 with rest of settings remaining same, the dashboard are not being embedded, and failing in token step only I believe. These are my superset logs - `[2025-06-24 16:15:31 +0000] [7402] [DEBUG] GET /api/v1/security/csrf_token/ 2025-06-24 16:15:31,965:DEBUG:superset.stats_logger:[stats_logger] (incr) csrf_token [2025-06-24 16:15:31 +0000] [7402] [DEBUG] Closing connection. [2025-06-24 16:15:32 +0000] [7402] [DEBUG] POST /api/v1/security/login [2025-06-24 16:15:32 +0000] [7401] [DEBUG] GET /login/ [2025-06-24 16:15:32 +0000] [7401] [DEBUG] Closing connection. [2025-06-24 16:15:32 +0000] [7402] [DEBUG] Closing connection. [2025-06-24 16:15:32 +0000] [7401] [DEBUG] GET /api/v1/security/csrf_token/ 2025-06-24 16:15:32,181:DEBUG:superset.stats_logger:[stats_logger] (incr) csrf_token [2025-06-24 16:15:32 +0000] [7401] [DEBUG] Closing connection. [2025-06-24 16:15:58 +0000] [7401] [DEBUG] GET /api/v1/me/ [2025-06-24 16:16:00 +0000] [7401] [DEBUG] Closing connection. [2025-06-24 16:16:14 +0000] [7401] [DEBUG] POST /api/v1/security/login [2025-06-24 16:16:14 +0000] [7402] [DEBUG] GET /embedded/2ef5c08e-0da6-454e-be2b-0154d5ebd0e9 2025-06-24 16:16:14,413:WARNING:root:Failed to add user to db session: Class 'werkzeug.local.LocalProxy' is not mapped 2025-06-24 16:16:14,413:DEBUG:superset.stats_logger:[stats_logger] (incr) embedded [2025-06-24 16:16:14 +0000] [7402] [DEBUG] Closing connection. [2025-06-24 16:16:14 +0000] [7401] [DEBUG] Closing connection. [2025-06-24 16:16:14 +0000] [7402] [DEBUG] GET /api/v1/security/csrf_token/ 2025-06-24 16:16:14,446:DEBUG:superset.stats_logger:[stats_logger] (incr) csrf_token [2025-06-24 16:16:14 +0000] [7402] [DEBUG] Closing connection. [2025-06-24 16:20:30 +0000] [7400] [DEBUG] GET /api/v1/me/ [2025-06-24 16:20:32 +0000] [7402] [DEBUG] GET /roles/list/ 2025-06-24 16:20:33,025:WARNING:superset.db_engine_specs:Unable to load SQLAlchemy dialect shillelagh.multicorn2: No module named 'psycopg2' [2025-06-24 16:20:35 +0000] [7402] [DEBUG] GET /roles/show/6 [2025-06-24 16:20:36 +0000] [7402] [DEBUG] GET /static/appbuilder/js/ab_keep_tab.js [2025-06-24 16:20:40 +0000] [7402] [DEBUG] Closing connection.` What am I missing here? GitHub link: https://github.com/apache/superset/discussions/33886 ---- 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]
