Apache Superset Embedded Not Working #20175
Replies: 8 comments 7 replies
-
That means that you don't have the embdedded sdk working. Providing some detailed information about the error would be required for anybody to provide assistance. |
Beta Was this translation helpful? Give feedback.
-
I've been struggling with embed SDK for some time now and my issue is the same as the one briefly described by @jogendra-jsc In the back-end I'm able to connect to superset API and fetch the access_token and guest_token. I've used this example (https://github.com/ra002890/superset-embedded-example) with slight modifications and it works like a charm. In the front-end I used the same example and was able to fetch the guest token and successfully request the embedding using the embed sdk The issue I am facing is that after all of that the SDK is requesting the roles for the current user on api/v1/me/roles/ and this returns 401 since I'm not logged in. I've tested the api/v1/me/roles/ endpoint in Python and I get the same 401 error:
The access token is correct because it works on different endpoints such as /api/v1/dashboard/ , /api/v1/security/guest_token/ The only way I could make '/api/v1/me/roles/' endpoint work in Python is if I use a request session within python
but obviously this can't work in production embedding. Lastly, this is more or less the related lines of my configuration file
Any sort of help/directions will be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
can anyone please tell how to fetch value of guest token in superset_config.py file ...as in url am passing token and that token need to verify in config file so it bypass the login screen of superset for user. Thanks in advance!!!!!! |
Beta Was this translation helpful? Give feedback.
-
Hello everyone! There are a lot of configures to try fix problems in Superset, right? In my case, I got the message:
The dashboard is available on Superset Dashboard List, also rendering as expected. Frontend
Backend - FastAPIUsing SupersetClient from https://pypi.org/project/superset-api-client/
Anyone can help me? |
Beta Was this translation helpful? Give feedback.
-
Same is happening for me |
Beta Was this translation helpful? Give feedback.
-
+1, I tried to break down the issue by trying to get the guest token and accessing superset from incognito window using the following URL: I am trying to use the guest_token to allow guests to see the dashboard without logging in. However the above URL keeps redirecting me to the login page. Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am getting an error in an ebedded dashboard using @superset-ui/embedded-sdk in a React app: In chrome at network tab I see passed ok the following methods, api/v1/guesttoken Error: ORA-00936: missing expression I comment that in Superset the dashboard is loading succesfully. Someone with same error. Thanks in advanced |
Beta Was this translation helpful? Give feedback.
-
I am trying to integrate Apache Superset dashboards into our web app. I have followed the embedded sdk steps. The integration seems to work but the issue that we are facing is that we have to login into superset in another tab or browser to see the dashboard in our app. If we are not logged in into superset in browser then it is giving error and not loading the dashboard.
Can you please let us know what we are missing here.
Beta Was this translation helpful? Give feedback.
All reactions