Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to embed imported dashboard. #28179

Open
3 tasks done
kushalmraut opened this issue Apr 23, 2024 · 2 comments
Open
3 tasks done

Unable to embed imported dashboard. #28179

kushalmraut opened this issue Apr 23, 2024 · 2 comments

Comments

@kushalmraut
Copy link

Bug description

Unable to embed imported dashboard.
image

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
image

I am not getting any error on superset terminal tho.

I have successfully imported the dashboard and chart.
image

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

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • 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.
@ranasaket
Copy link

hi.. i was also faing the same issue. The below link will solve your problem definitly.

https://www.tetranyde.com/blog/embedding-superset

@shantanukhond
Copy link

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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants