You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Superset application logs are full of warnings: WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped #26020
Hello, my problem is exactly the same as the one reported on stackoverflow, after installing I had a problem that after logging in it redirected to the login screen again, I checked the logs and it was about CSRF, I commented out some lines in the config file and now after logging in I have the error "WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped", but I haven't found any solution yet.
The loop redirecting to the login screen with a CSRF error is discussed and addressed in #24579.
The warning you note is a warning, not an error, and has been present in my Superset logs since at least 2.0.0 without causing any performance problems. That said, it clutters the logs and confuses people who are troubleshooting (like this case). I'm going to retitle this issue and leave it open until someone closes it by resolving the werkzeug.local.LocalProxy warning message.
changed the title [-]Error 'werkzeug.local.LocalProxy' is not mapped" in Ubuntu EC2[/-][+]Superset application logs are full of warnings: WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped[/+]on Nov 28, 2023
this might not be the solution you're going for, but the warnings module in stdlib is pretty effective for tuning out warnings from 3rd party packages: https://docs.python.org/3/library/warnings.html
OK, this issue may be less concerned, but I faced this issue and I think I figured it out.
Anyhow, I wrote down RATELIMIT_STORAGE_URI option in my superset_config.py file, and the warning doesn't pop out anymore.
I use Redis as my backend, so I wrote the option like this: RATELIMIT_STORAGE_URI = 'redis://{REDIS_HOST}:{REDIS_PORT}'
And voila, the warning is gone.
In code side, there's a empty dict value _event_logger at superset/superset/extensions/init.py . Below the variable, event_logger variable gets LocalProxy of Werkzeug, and if _event_logger stays as empty dict, event_logger LocalProxy get nothing from .get method, and I think that's why this warning pops up. (Just my theory though)
And for the record, I am using Superset 4.0.1 self-hosted!
发自我的手机-------- 原始邮件 --------发件人: Byeonghyun Kim ***@***.***>日期: 2024年5月23日周四 17:58收件人: apache/superset ***@***.***>抄送: Subscribed ***@***.***>主 题: Re: [apache/superset] Superset application logs are full of warnings: WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped (Issue #26020)
OK, this issue may be less concerned, but I faced this issue and I think I figured it out.
Anyhow, I wrote down RATELIMIT_STORAGE_URI option in my superset_config.py file, and the warning doesn't pop out anymore.
I use Redis as my backend, so I wrote the option like this:
RATELIMIT_STORAGE_URI = 'redis://{REDIS_HOST}:{REDIS_PORT}'
And voila, the warning is gone.
In code side, there's a empty dict value _event_logger at superset/superset/extensions/init.py . Below the variable,
event_logger variable gets LocalProxy of Werkzeug, and if _event_logger stays as empty dict, event_logger LocalProxy get nothing from .get method, and I think that's why this warning pops up. (Just my theory though)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
😍发自我的手机-------- 原始邮件 --------发件人: ***@***.***日期: 2024年5月23日周四 19:03收件人: apache/superset ***@***.***>, Byeonghyun Kim ***@***.***>, apache/superset ***@***.***>抄送: Subscribed ***@***.***>主 题: 回复:[apache/superset] Superset application logs are full of warnings: WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped (Issue #26020)发自我的手机-------- 原始邮件 --------发件人: Byeonghyun Kim ***@***.***>日期: 2024年5月23日周四 17:58收件人: apache/superset ***@***.***>抄送: Subscribed ***@***.***>主 题: Re: [apache/superset] Superset application logs are full of warnings: WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped (Issue #26020)
OK, this issue may be less concerned, but I faced this issue and I think I figured it out.
Anyhow, I wrote down RATELIMIT_STORAGE_URI option in my superset_config.py file, and the warning doesn't pop out anymore.
I use Redis as my backend, so I wrote the option like this:
RATELIMIT_STORAGE_URI = 'redis://{REDIS_HOST}:{REDIS_PORT}'
And voila, the warning is gone.
In code side, there's a empty dict value _event_logger at superset/superset/extensions/init.py . Below the variable,
event_logger variable gets LocalProxy of Werkzeug, and if _event_logger stays as empty dict, event_logger LocalProxy get nothing from .get method, and I think that's why this warning pops up. (Just my theory though)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Activity
sfirke commentedon Nov 28, 2023
The loop redirecting to the login screen with a CSRF error is discussed and addressed in #24579.
The warning you note is a warning, not an error, and has been present in my Superset logs since at least 2.0.0 without causing any performance problems. That said, it clutters the logs and confuses people who are troubleshooting (like this case). I'm going to retitle this issue and leave it open until someone closes it by resolving the werkzeug.local.LocalProxy warning message.
[-]Error 'werkzeug.local.LocalProxy' is not mapped" in Ubuntu EC2[/-][+]Superset application logs are full of warnings: WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped[/+]justmike1 commentedon Dec 3, 2023
can we suppress those warnings?
rusackas commentedon Apr 19, 2024
cc @craig-rueda and @dpgaspar to see if either of them know how to either resolve or suppress the warning.
andy-clapson commentedon May 13, 2024
this might not be the solution you're going for, but the
warningsmodule in stdlib is pretty effective for tuning out warnings from 3rd party packages: https://docs.python.org/3/library/warnings.htmlbyeonghyun-kim commentedon May 23, 2024
OK, this issue may be less concerned, but I faced this issue and I think I figured it out.
Anyhow, I wrote down
RATELIMIT_STORAGE_URIoption in mysuperset_config.pyfile, and the warning doesn't pop out anymore.I use Redis as my backend, so I wrote the option like this:
RATELIMIT_STORAGE_URI = 'redis://{REDIS_HOST}:{REDIS_PORT}'And voila, the warning is gone.
In code side, there's a empty dict value
_event_loggerat superset/superset/extensions/init.py . Below the variable,event_loggervariable gets LocalProxy of Werkzeug, and if _event_logger stays as empty dict, event_logger LocalProxy get nothing from .get method, and I think that's why this warning pops up. (Just my theory though)And for the record, I am using Superset 4.0.1 self-hosted!
daringliu commentedon May 23, 2024
daringliu commentedon May 23, 2024
Habeeb556 commentedon Aug 9, 2024
++ #29403
I’ve already configured this, but the warning persists.
RATELIMIT_STORAGE_URI = f"redis://{REDIS_HOST}:{REDIS_PORT}"andy-clapson commentedon Dec 10, 2024
this may help some folks: #29403 (comment)
rusackas commentedon Apr 29, 2025
PR merged that should address this. Thanks!