May I suggest that you slow down a bit for those who are not as proficient as you are (you may have more practice and experience). Otherwise, one gets the idea the focus is more on completing the video in a fixed time, rather than effectively transfer knowledge. Main focus should be to transfer knowledge, even if it takes more than one video (or a longer video) to do it. Great work, which reduces many hours of trial and error for others.
To be honest i do not write script and am just recording whatever i could. If you consider same for slowing down, someone might say same thing that i am just stretching video to get more watch hour. Anyways i am still learning and trying to show whatever i am doing that i struggled if someone who is really trying and doing some handson should definitely understand what i am doing. My main goal is to help everyone. Thank you for your suggestion will definitely try to implement it.
hi sahntanu I successfully called the login API, but when calling /guest_token/, it is returning the error about the missing CSRF token s there something I am missing regarding CSRF token handling in my Angular application? can you guide me ..
@@ShantanuKhond thank you but i facing one more problem The 500 INTERNAL SERVER ERROR for the /api/v1/me/roles/ endpoint, along with the error "Something went wrong with embedded authentication", suggests that there are issues with how Superset is handling the embedded authentication
Ok lets try couples of things 1. lets use postman to call api one by one 2. When you call the api just have a look at backend of superset you might find a reason for 500. If not you can send me email over contact@shantanukhond.me
@@ShantanuKhond I wanted to reach out regarding some technical questions I have related to Superset integration. I’ve sent the details to your email and would greatly appreciate it if you could review and provide your insights at your earliest convenience I was able to successfully embed and render the Superset dashboard certain charts within the dashboard are not displaying as expected. Instead of the full visualization, I encounter the message: "Unexpected error
When trying to implement this in my local React project on localhost, I am able to log in, but getting a 'bad request' error when requesting a guest token. Can you suggest any ideas on how to resolve this?
I want to show my superset main menu page instead of embedded dashboards. Is this possible by passing guest_token & csrf_token & redirecting to main page ?
Yes, Using this code const = dashboardElement.querySelector(''); if () { .style.width = '100%'; // Set the width as needed .style.height = '1000px'; // Set the height as needed }
That means there is some issue with permission. Please check if the user has permission to embed. There are two types of users in this case one should be admin with embed permission who will grant user permission to embed using rls. And second user is actual user who has rls permission granted by admin.
May I suggest that you slow down a bit for those who are not as proficient as you are (you may have more practice and experience).
Otherwise, one gets the idea the focus is more on completing the video in a fixed time, rather than effectively transfer knowledge. Main focus should be to transfer knowledge, even if it takes more than one video (or a longer video) to do it.
Great work, which reduces many hours of trial and error for others.
To be honest i do not write script and am just recording whatever i could. If you consider same for slowing down, someone might say same thing that i am just stretching video to get more watch hour.
Anyways i am still learning and trying to show whatever i am doing that i struggled if someone who is really trying and doing some handson should definitely understand what i am doing. My main goal is to help everyone.
Thank you for your suggestion will definitely try to implement it.
which version of superset are you using . And have you used the same dashboard_id you took from embed dashboard section.
I guess this is old v2 but same i tried on version 4.0.1 yes i used same id that i copied from embed popup when i added to the cors list.
You are the best!
Thank you😊!
hi sahntanu I successfully called the login API, but when calling /guest_token/, it is returning the error about the missing CSRF token s there something I am missing regarding CSRF token handling in my Angular application? can you guide me ..
I simply didabled it using flag as i could not find any proper documentation.
@@ShantanuKhond thank you but i facing one more problem The 500 INTERNAL SERVER ERROR for the /api/v1/me/roles/ endpoint, along with the error "Something went wrong with embedded authentication", suggests that there are issues with how Superset is handling the embedded authentication
Ok lets try couples of things
1. lets use postman to call api one by one
2. When you call the api just have a look at backend of superset you might find a reason for 500. If not you can send me email over contact@shantanukhond.me
@@ShantanuKhond I wanted to reach out regarding some technical questions I have related to Superset integration. I’ve sent the details to your email and would greatly appreciate it if you could review and provide your insights at your earliest convenience I was able to successfully embed and render the Superset dashboard certain charts within the dashboard are not displaying as expected. Instead of the full visualization, I encounter the message: "Unexpected error
When trying to implement this in my local React project on localhost, I am able to log in, but getting a 'bad request' error when requesting a guest token. Can you suggest any ideas on how to resolve this?
I guess one more reason for it can be the json. That json we pass should contain all fields even rls as well even if you don't need it.
I want to show my superset main menu page instead of embedded dashboards. Is this possible by passing guest_token & csrf_token & redirecting to main page ?
Haven't tried but i guess you will have to pass other details. Mostly like sso tools.
Hi bro when are you going to release the react part
Most probably this weekend.
I updated github for react code you can check now. Will record video tomorrow.
@@ShantanuKhond ok thank you bro
Hey could you fix the css issue?
Yes,
Using this code
const = dashboardElement.querySelector('');
if () {
.style.width = '100%'; // Set the width as needed
.style.height = '1000px'; // Set the height as needed
}
@@ShantanuKhond thankyou so much was struggling a lot with CSS
@@ShantanuKhondCan you please a hint, where to put that code !?
Please make tutorial export excel pivot table 😊
Sure will do.
I tried, but it is showing me 403 when i tried to embed it in
That means there is some issue with permission. Please check if the user has permission to embed. There are two types of users in this case one should be admin with embed permission who will grant user permission to embed using rls. And second user is actual user who has rls permission granted by admin.
@@ShantanuKhond ok will try
can we download superset charts in angular
For embedding yes you can but not individual chart. You can explore ngx echarts.
getting 422 while hitting guest token end point
Please check the payload if there is any syntax error. This error is most probably due to that.