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/08/22 10:53:30 UTC
[GitHub] [superset] progettoautomazione opened a new issue, #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
progettoautomazione opened a new issue, #21146:
URL: https://github.com/apache/superset/issues/21146
**Environment:**
Superset 2.0.0
Python 3.8
Server Web: Apache
OS: Ubuntu 22
Hi everyone, great job guys, keep going because the tool is cutting edge. Thanks. I'm having a trouble in embedding a dashboard:
I followed all under https://www.npmjs.com/package/@superset-ui/embedded-sdk and https://medium.com/@khushbu.adav/embedding-superset-dashboards-in-your-react-application-7f282e3dbd88
and I created this simple page:
https://progestnow.com/superset.html
As you can see, auth appears going well, but the URL that gets generated gives 500 error: https://bi.progestnow.com/embedded/d4f94ba8-4737-42a4-913e-48e88829ae87?uiConfig=1
I checked the server logs and I found:
AttributeError: 'LoginManager' object has no attribute 'reload_user'
2022-08-22 10:38:52,595:INFO:werkzeug:92.53.59.220 - - [22/Aug/2022 10:38:52] "GET /embedded/d4f94ba8-4737-42a4-913e-48e88829ae87?uiConfig=1 HTTP/1.1" 500 -
Any idea why? Everything else on Superset looks great, I am not seeing any other 500 error that might led to misconfiguration of the tool. It's just this /embed/ route.
Thanks
--
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] userkdg commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
userkdg commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1289888334
up!
--
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] Usiel commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
Usiel commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1383695983
Simplest way will be to adapt your pip install command to `pip install apache-superset==2.0.0 flask-login==0.4.1` or just `pip install flask-login==0.4.1` if you just want to fix your current setup (0.4.1 is perfectly compatible with Superset 2.0.0).
--
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] amarchilukuri commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
amarchilukuri commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1379810662
Hi, we are also facing same issue. setting flask-login:0.4.1 or flask-login: 0.6.0 not resolved

the issue. We are using helm chart to setup superset in kubernetes. Someone please help to resolve the same.
We see AttributeError: LoginManager object has no attribute reload_user.
Attached the exception screenshot.
--
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] progettoautomazione commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
progettoautomazione commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1222756631
My superset_config.py:
```
WEBDRIVER_BASEURL = "https://bi.progestnow.com/"
SUPERSET_FEATURE_EMBEDDED_SUPERSET = True
FEATURE_FLAGS = {
"ENABLE_TEMPLATE_PROCESSING": True,
"EMBEDDED_SUPERSET": True,
"EMBEDDABLE_CHARTS": True,
}
DATA_CACHE_CONFIG = {
"CACHE_TYPE": "SupersetMetastoreCache",
"CACHE_KEY_PREFIX": "superset_results", # make sure this string is unique to avoid collisions
"CACHE_DEFAULT_TIMEOUT": 86400, # 60 seconds * 60 minutes * 24 hours
}
HTTP_HEADERS = {'X-Frame-Options': 'ALLOWALL'}
SESSION_COOKIE_SAMESITE = None
ENABLE_PROXY_FIX = True
PUBLIC_ROLE_LIKE_GAMMA = True
ENABLE_CORS = True
CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
'resources':['*'],
'origins': ['*']
}
ENABLE_TIME_ROTATE = True
```
--
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] mahesh-kockpit commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
mahesh-kockpit commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1229795213
Below is my browser console

Below is my IFrame screen shot which is empty

--
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] mahesh-kockpit commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
mahesh-kockpit commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1225640033
I am also facing same issue
--
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
Re: [I] Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1 [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
URL: https://github.com/apache/superset/issues/21146
--
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] Usiel commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
Usiel commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1360758553
Similar issue https://github.com/apache/superset/issues/21987, both should be fixed by https://github.com/apache/superset/pull/22462
--
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
Re: [I] Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1 [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1946842770
This is likely fixed by now, and is pretty out of date if not. If people are still encountering this in currently suppored versions (3.x or newer) please open a new Issue with updated context, or a PR to address the 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] Delfins commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
Delfins commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1383655500
> > Hi everyone, I understood that the issue has been recognised and probably fixed, but...where? I mean, I've the superset 2.0.0 version installed 7-8 months ago with a regoular pip install apache-superset
> > Now how do I get the fix?
> > Thanks
>
> I don't know which future release the fix will be included in @Delfins. In the meantime you can use the [workaround](#issuecomment-1229623428) by @cwegener.
Thanks @Usiel but I'm a newbie of Python, how do I downgrade the flask version?
--
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] mahesh-kockpit commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
mahesh-kockpit commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1229787638
@cwegener thanks for your comment. I tried this but same issue can you please help us how to implement embedded feature of superset.
--
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] mahesh-kockpit commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
mahesh-kockpit commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1225640601
found any solution @progettoautomazione ?
--
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] Delfins commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
Delfins commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1383180397
Hi everyone, I understood that the issue has been recognised and probably fixed, but...where? I mean, I've the superset 2.0.0 version installed 7-8 months ago with a regoular pip install apache-superset
Now how do I get the fix?
Thanks
--
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] progettoautomazione commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
progettoautomazione commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1227266415
> found any solution @progettoautomazione ?
sadly no, as a workaround, we are using simple iframe embed so far....
--
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] cwegener commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
cwegener commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1229623428
@mahesh-kockpit @progettoautomazione This is caused by a later version of `flask-login` being pulled in as a dependency and Superset still calling the removed method. I don't know exactly which version of `flask-login` has removed the call, but I do know that `flask-login==0.4.1` is working fine
--
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] johntwyman commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
johntwyman commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1243224504
I've encountered the same problem. Downgrading flask-login to 0.4.1 definitely fixed the problem for me.
[This OctoPrint issue](https://github.com/OctoPrint/OctoPrint/issues/3600) confirms @cwegener 's comment about the `flask-login` version. The [related PR](https://github.com/OctoPrint/OctoPrint/commit/55dafd511b2b69cde89848efbf4098c0bf696eb0) suggests the breaking change came with `flask-login:0.5`.
--
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] Usiel commented on issue #21146: Embedded Dashboard 500 Error {{superser_domain}}/embedded/{{dashboard_id}}?uiConfig=1
Posted by GitBox <gi...@apache.org>.
Usiel commented on issue #21146:
URL: https://github.com/apache/superset/issues/21146#issuecomment-1383457366
> Hi everyone, I understood that the issue has been recognised and probably fixed, but...where? I mean, I've the superset 2.0.0 version installed 7-8 months ago with a regoular pip install apache-superset
Now how do I get the fix?
Thanks
I don't know which future release the fix will be included in @Delfins. In the meantime you can use the <a href="#issuecomment-1229623428">workaround</a> by @cwegener.
--
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