superset
superset copied to clipboard
Unable to embed imported dashboard.
Bug description
Unable to embed imported dashboard.
end point /api/v1/dashboard/17
giving error 404 not found
end point /api/v1/dashboard/17/charts
giving error 404 not found
end point /api/v1/dashboard/17/datasets
giving error 404 not found
Unexpected error: SupersetApiError: Not found
I am not getting any error on superset terminal tho.
I have successfully imported the dashboard and chart.
How to reproduce the bug
Import Dashboard. Try embedding the dashboard with superset sdk. (@superset-ui/embedded-sdk)
Screenshots/recordings
No response
Superset version
4.0.0
Python version
3.11
Node version
16
Browser
Chrome
Additional context
No response
Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
hi.. i was also faing the same issue. The below link will solve your problem definitly.
https://www.tetranyde.com/blog/embedding-superset
Try putting
GUEST_TOKEN_JWT_EXP_SECONDS = 300 # 5 minutes
in your superset_config.py
(filename could vary if you created it with different name) file if it works if not then try putting below code
# Dashboard embedding
GUEST_ROLE_NAME = "Gamma"
GUEST_TOKEN_JWT_SECRET = "PASTE_GENERATED_SECRET_HERE"
GUEST_TOKEN_JWT_ALGO = "HS256"
GUEST_TOKEN_HEADER_NAME = "X-GuestToken"
GUEST_TOKEN_JWT_EXP_SECONDS = 300 # 5 minutes
@shantanukhond this doesnt works when I want to filter the data on dashboard using row level security. Got any suggestions for that ?