Skip to content

Facing 401 issue in embedded dashboard #42073

Description

@keveen-ghori-tatvasoft

Bug description

I am not able to render dashboard in embedded mode in Superset 6.1.0. Seeing below logs into pods:

2026-07-13 10:51:59,397:WARNING:superset.async_events.async_query_manager:Parse jwt failed
Traceback (most recent call last):
  File "/app/superset/async_events/async_query_manager.py", line 204, in parse_channel_id_from_request
    return jwt.decode(token, self._jwt_secret, algorithms=["HS256"])["channel"]
  File "/app/.venv/lib/python3.10/site-packages/jwt/api_jwt.py", line 222, in decode
    decoded = self.decode_complete(
  File "/app/.venv/lib/python3.10/site-packages/jwt/api_jwt.py", line 167, in decode_complete
    self._validate_claims(
  File "/app/.venv/lib/python3.10/site-packages/jwt/api_jwt.py", line 273, in _validate_claims
    self._validate_sub(payload, subject)
  File "/app/.venv/lib/python3.10/site-packages/jwt/api_jwt.py", line 300, in _validate_sub
    raise InvalidSubjectError("Subject must be a string")
jwt.exceptions.InvalidSubjectError: Subject must be a string
2026-07-13 10:51:59,397:WARNING:root:Failed to add user to db session: Class 'werkzeug.local.LocalProxy' is not mappe

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions