Bug description
Deployment Method: K8S
When reporting to Slack, there was an error in requesting report data: Failed generating dataframe HTTP Error 401: UNAUTHORIZED
After restarting the worker container, the first report succeeds, but subsequent attempts all result in a 401 error.
Screenshots/recordings
Superset version
4.0.2
Python version
I don't know
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
Hey @yokonsan! 👋 I'm here to help you with your bug report and answer any questions you have. I'm a bot designed to assist with bug troubleshooting, offer solutions, and guide you to become a contributor. Let's squash this bug together!
The HTTP 401 error when generating a dataframe in Superset could be related to authentication issues. Here are a few things to check:
-
Session Management: Ensure that session cookies are properly managed and not expiring unexpectedly. Superset uses Flask-Login for session management, and the session lifetime can be configured with
PERMANENT_SESSION_LIFETIME
[1]. -
Token Expiration: If you're using OAuth2 for data source access, verify that the access tokens are valid and not expired. Superset attempts to refresh tokens if a refresh token is available, but if both are invalid, it will result in a 401 error [2].
-
Slack Integration: Check the
SLACK_API_TOKEN
configuration to ensure it's correctly set and not causing authentication issues [3]. -
Kubernetes Configuration: Ensure that your Kubernetes deployment is correctly handling environment variables and secrets related to authentication.
Review these areas to identify potential misconfigurations or expired tokens that might be causing the issue.
To continue talking to Dosu, mention @dosu.
Comment From: rusackas
Closing this as it's been dormant for >6 months, and seems like a config issue more than a Superset bug. Let us know if you're still facing this, and we can reopen/convert it to a Help discussion, but the feature definitely works (i.e. I use it on Preset all the time)