Skip to content

UI Freeze When Clicking “Samples” Tab in Treemap Chart – Empty 200 Response #36840

@hassaansaleem28

Description

@hassaansaleem28

Bug description

Hi! While I was working on issue #36807, I discovered another problem. When experimenting with Treemap charts in the Explore view, clicking the “Samples” tab triggers a request to /datasource/samples. The backend responds with HTTP 200 but an empty body. The frontend loader spins for a while, and then the UI freezes.

STEPS TO REPRODUCE IT:

1- Run Superset in Docker (latest dev build - Docker Compose).
2- Go to the charts tab and create a Treemap chart using any dataset.
3- Click the “Samples” tab (bottom right).
4- Observe loader spins, UI freezes, and no data shown.

Expected Behavior:
The Samples tab should display rows or show a “No data available” message or something like that.

Actual Behavior:
The UI freezes after receiving a 200 response with no content.

Screenshots/recordings

Image

HERE IS THE SCREEN RECORDING OF THAT EXACT ISSUE :

ScreenRecording.-.Made.with.Clipchamp.mp4

Superset version

master / latest-dev

Python version

3.11

Node version

18 or greater

Browser

Chrome

Additional context

Any Dataset will give the same response. I have checked it multiple times.

Backend log snippet :
POST /datasource/samples?force=false&datasource_type=table&datasource_id=1 HTTP/1.1" 200 -

Checklist

  • I have searched the 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

    Labels

    exploreNamespace | Anything related to Exploreviz:charts:treemapRelated to the Treemap chart

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions