You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/07/21 09:48:44 UTC

[GitHub] [superset] dali-trabelsi opened a new issue, #20800: Embedded dashboard auto reloads with ReferenceError: Buffer is not defined at getGuestTokenRefreshTiming

dali-trabelsi opened a new issue, #20800:
URL: https://github.com/apache/superset/issues/20800

   The embedded dashboard auto reloads very often (every few seconds).
   The iframe display the dashboard correctly but I get ReferenceError: Buffer is not defined at getGuestTokenRefreshTiming 
   
   #### Screenshots
   ![image](https://user-images.githubusercontent.com/52967116/180183666-391dba4b-14c6-4b88-94cf-34585f924657.png)
   
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: Chrome
   - superset version: 2.0.0
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ x ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [ x ] I have reproduced the issue with at least the latest released version of superset.
   - [ x ] I have checked the issue tracker for the same issue and I haven't found one similar.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] dali-trabelsi commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
dali-trabelsi commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1283616461

   @rusackas any updates please? we're still facing the same frustrating problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] j-goldsmith commented on issue #20800: Embedded dashboard auto reloads with ReferenceError: Buffer is not defined at getGuestTokenRefreshTiming

Posted by GitBox <gi...@apache.org>.
j-goldsmith commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1191917514

   I'm running into a similar bug, followed by 403 errors when the embed iframe makes requests to the api.
   
   v 2.0.0
   Firefox
   
   `<script>
           async function fetchGuestTokenFromBackend() {
               let response = await fetch('/superset/embed/FetchGuestToken/<uuid>');
   
               if (response.status === 200) {
                   return await response.text();
               }
               return null;
           }
   
           supersetEmbeddedSdk.embedDashboard({
               id: "<uuid>", 
               supersetDomain: "https://viz.domain.com",
               mountPoint: document.getElementById("viz"), 
               fetchGuestToken: () => fetchGuestTokenFromBackend(),
               dashboardUiConfig: {}, 
           });
   
       </script>`
   
   Guest token seems to be generated fine, except that after the "Buffer is not Defined" error, the subsequent request from the iframe to https://viz.domain.com/api/v1/me/roles/ sends back inaccurate isActive, roles, and permissions.
   
   `
   [HTTP/2 200 OK 111ms]
   {"result":{
   "firstName":"first",
   "isActive":false,
   "isAnonymous":false,
   "lastName":"last",
   "permissions":{},"roles":{},
   "username":"user"}}
   `
   
   That user is active, has roles and was authorized for the dashboard being embedded. I tried adding a browserfied version of Buffer with no luck, but that may be my lack of frontend bundling experience. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] frafra commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
frafra commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1209028725

   @dali-trabelsi Please do not tag random people. I just did minor contributors, I am not a maintainer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] dali-trabelsi commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
dali-trabelsi commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1235269205

   > @dali-trabelsi to temporarily fix it i add buffer as dep and then import { Buffer } from 'buffer';
   > 
   > window.Buffer = Buffer;
   
   thank you @pabloascarza  it does fix the buffer error but not the main problem of the page reloading automatically way too often


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] vivek-kandhvar commented on issue #20800: Embedded dashboard auto reloads with ReferenceError: Buffer is not defined at getGuestTokenRefreshTiming

Posted by GitBox <gi...@apache.org>.
vivek-kandhvar commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1205130719

   Same problem for us too! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] dali-trabelsi commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
dali-trabelsi commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1222372687

   @pabloascarza unfortunately I even tried to modify the lib code inside node_modules of the packages but was still getting the same problem, I couldn't identify why it's auto-reloading. Please let me know if you tried anything from your end. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] dali-trabelsi closed issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by "dali-trabelsi (via GitHub)" <gi...@apache.org>.
dali-trabelsi closed issue #20800: Embedded dashboard reloads automatically every few seconds
URL: https://github.com/apache/superset/issues/20800


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] pabloascarza commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
pabloascarza commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1222466812

   > 
   
   To temporarily fix it i add buffer as dep and then
   import { Buffer } from 'buffer';
   
   window.Buffer = Buffer;
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] dali-trabelsi commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
dali-trabelsi commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1235270537

   > 
   
   
   
   > Passing this around on Slack to some folks that have knowledge in this general area, but not sure if/when they'll have the bandwidth to go very deep on it.
   
   Thank you so much!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] pabloascarza commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
pabloascarza commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1218457792

   Any updates on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] rusackas commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
rusackas commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1231806058

   Passing this around on Slack to some folks that have knowledge in this general area, but not sure if/when they'll have the bandwidth to go very deep on it. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] dali-trabelsi commented on issue #20800: Embedded dashboard reloads automatically every few seconds

Posted by GitBox <gi...@apache.org>.
dali-trabelsi commented on issue #20800:
URL: https://github.com/apache/superset/issues/20800#issuecomment-1207517767

   @frafra @ryw @moonboots can you check this out please? it's really urgent


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org