You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "1sanqian (via GitHub)" <gi...@apache.org> on 2025/12/29 10:40:53 UTC
[D] Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. [superset]
GitHub user 1sanqian created a discussion: Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
GitHub link: https://github.com/apache/superset/discussions/36853
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
<!-- Answer -->
A few things can cause Superset charts to show as empty or with zero data even when everything appears to render fine with Playwright. The most common cause is a data type mismatch: if your query returns numeric values as strings instead of numbers, Superset charts may render as empty or only show NULL values. You can check this in SQL Lab—make sure your metrics/values are numeric, not string types. Fixing the data type in your query or database should resolve this for most chart types [(source)](https://github.com/apache/superset/issues/33174).
If your data is truly zero, Superset will render an empty chart by design; Playwright just waits for rendering and doesn't alter the data [(source)](https://github.com/apache/superset/blob/master/superset/utils/webdriver.py). Also, confirm the issue isn't specific to a certain chart type or dataset by testing with different charts and data sources.
For Playwright automation, ensure you wait for the dashboard and all chart containers to be visible, all loading spinners to disappear, and add a short delay (1–2 seconds) for chart animations to finish before taking screenshots [(source)](https://github.com/apache/superset/discussions/36845).
If you still see empty charts, check Superset permissions and configuration to make sure data visibility isn't restricted, and review logs or browser console for subtle errors. If you can share the chart type, data source, and a sample query result, I can help dig deeper.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=eca63ee2-22c0-4ea2-9675-b1405761f718) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36853#discussioncomment-15363692
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
<!-- Answer -->
The most common cause for charts showing zero data or being empty in Playwright automation—but not in direct login—is a difference in authentication/session context. Superset's Playwright integration doesn't perform a UI login; instead, it programmatically sets session cookies for the user in the browser context. If these cookies are missing, expired, or set with the wrong domain/path/samesite attributes, the session may lack the right permissions, causing charts to appear empty even though the page renders without errors. This can also happen if Playwright is using a different user or role than your manual login, or if row-level security or CSRF protection blocks data access in automation sessions [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/machine_auth.py#L43-L160).
To resolve this, confirm that your Playwright automation is using the same user credentials and session context as your direct login. Check your Superset config for MACHINE_AUTH_PROVIDER_CLASS, WEBDRIVER_BASEURL, and session cookie settings (SESSION_COOKIE_SAMESITE, SESSION_COOKIE_HTTPONLY, SESSION_COOKIE_SECURE) to ensure they match your real login environment. Also, compare network requests and API responses between Playwright and direct login to spot differences in returned data or permissions. If you use caching for screenshots, try disabling it or forcing a refresh to rule out stale images [source](https://github.com/apache/superset/issues/25237#issuecomment-3355672287).
If you still see empty charts, check Superset backend logs for authentication or permission errors, and consider testing with a different user or the Public/Guest role to rule out SSO/session issues. For robust automation, always wait for all chart containers and loading spinners to disappear, then add a short delay for chart animations before taking screenshots [source](https://github.com/apache/superset/discussions/36845).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=b395397a-91b6-4ab0-a33b-2a7a4cf1be89) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/36853#discussioncomment-15363807
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
<!-- Answer -->
The most common cause for charts showing zero data or being empty in Playwright automation—but not in direct login—is a difference in authentication/session context. Superset's Playwright integration doesn't perform a UI login; instead, it programmatically sets session cookies for the user in the browser context. If these cookies are missing, expired, or set with the wrong domain/path/samesite attributes, the session may lack the right permissions, causing charts to appear empty even though the page renders without errors. This can also happen if Playwright is using a different user or role than your manual login, or if row-level security or CSRF protection blocks data access in automation sessions [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/machine_auth.py#L43-L160).
To resolve this, confirm that your Playwright automation is using the same user credentials and session context as your direct login. Check your Superset config for MACHINE_AUTH_PROVIDER_CLASS, WEBDRIVER_BASEURL, and session cookie settings (SESSION_COOKIE_SAMESITE, SESSION_COOKIE_HTTPONLY, SESSION_COOKIE_SECURE) to ensure they match your real login environment. Also, compare network requests and API responses between Playwright and direct login to spot differences in returned data or permissions. If you use caching for screenshots, try disabling it or forcing a refresh to rule out stale images [source](https://github.com/apache/superset/issues/25237#issuecomment-3355672287).
If you still see empty charts, check Superset backend logs for authentication or permission errors, and consider testing with a different user or the Public/Guest role to rule out SSO/session issues. For robust automation, always wait for all chart containers and loading spinners to disappear, then add a short delay for chart animations before taking screenshots [source](https://github.com/apache/superset/discussions/36845).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b395397a-91b6-4ab0-a33b-2a7a4cf1be89?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=The%20most%20common%20cause%20for%20charts%20showing%20zero%20data%20or%20being%20empty%20in%20Playwright%20automation%E2%80%94but%20not%20in%20direct%20login%E2%80%94is%20a%20difference%20in%20authentication/session%20context.%20Superset%27s%20Playwright%20integration%20doesn%27t%20perform%20a%20UI%20login%3B%20instead%2C%20it%20programmatically%20sets%20session%20cookies%20for%20the%20user%20in%20the%20browser%20context.%20If%20these%20cookies%20are%20missing%2C%20expired%2C%20or%20set%20with%20the%20wrong%20domain/path/samesite%20attributes%2C%20the%20session%20may%20lack%20the%20right%20permissions%2C%20causing%20charts%20to%20appear%20empty%20even%20though%20the%20page%20renders%20without%20errors.%20This%20can%20also%20happen%20if%20Playwright%2
0is%20using%20a%20different%20user%20or%20role%20than%20your%20manual%20login%2C%20or%20if%20row-level%20security%20or%20CSRF%20protection%20blocks%20data%20access%20in%20automation%20sessions%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/machine_auth.py%23L43-L160%29.%0A%0ATo%20resolve%20this%2C%20confirm%20that%20your%20Playwright%20automation%20is%20using%20the%20same%20user%20credentials%20and%20session%20context%20as%20your%20direct%20login.%20Check%20your%20Superset%20config%20for%20MACHINE_AUTH_PROVIDER_CLASS%2C%20WEBDRIVER_BASEURL%2C%20and%20session%20cookie%20settings%20%28SESSION_COOKIE_SAMESITE%2C%20SESSION_COOKIE_HTTPONLY%2C%20SESSION_COOKIE_SECURE%29%20to%20ensure%20they%20match%20your%20real%20login%20environment.%20Also%2C%20compare%20network%20requests%20and%20API%20responses%20between%20Playwright%20and%20direct%20login%20to%20spot%20differences%20in%20returned%20data%20or%20permissions.%20If%20you
%20use%20caching%20for%20screenshots%2C%20try%20disabling%20it%20or%20forcing%20a%20refresh%20to%20rule%20out%20stale%20images%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/25237%23issuecomment-3355672287%29.%0A%0AIf%20you%20still%20see%20empty%20charts%2C%20check%20Superset%20backend%20logs%20for%20authentication%20or%20permission%20errors%2C%20and%20consider%20testing%20with%20a%20different%20user%20or%20the%20Public/Guest%20role%20to%20rule%20out%20SSO/session%20issues.%20For%20robust%20automation%2C%20always%20wait%20for%20all%20chart%20containers%20and%20loading%20spinners%20to%20disappear%2C%20then%20add%20a%20short%20delay%20for%20chart%20animations%20before%20taking%20screenshots%20%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/36845%29.) [](https://go.dosu.dev/discord-bot) [](https://t
witter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36853)
GitHub link: https://github.com/apache/superset/discussions/36853#discussioncomment-15363807
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
<!-- Answer -->
A few things can cause Superset charts to show as empty or with zero data even when everything appears to render fine with Playwright. The most common cause is a data type mismatch: if your query returns numeric values as strings instead of numbers, Superset charts may render as empty or only show NULL values. You can check this in SQL Lab—make sure your metrics/values are numeric, not string types. Fixing the data type in your query or database should resolve this for most chart types [(source)](https://github.com/apache/superset/issues/33174).
If your data is truly zero, Superset will render an empty chart by design; Playwright just waits for rendering and doesn't alter the data [(source)](https://github.com/apache/superset/blob/master/superset/utils/webdriver.py). Also, confirm the issue isn't specific to a certain chart type or dataset by testing with different charts and data sources.
For Playwright automation, ensure you wait for the dashboard and all chart containers to be visible, all loading spinners to disappear, and add a short delay (1–2 seconds) for chart animations to finish before taking screenshots [(source)](https://github.com/apache/superset/discussions/36845).
If you still see empty charts, check Superset permissions and configuration to make sure data visibility isn't restricted, and review logs or browser console for subtle errors. If you can share the chart type, data source, and a sample query result, I can help dig deeper.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/eca63ee2-22c0-4ea2-9675-b1405761f718?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=A%20few%20things%20can%20cause%20Superset%20charts%20to%20show%20as%20empty%20or%20with%20zero%20data%20even%20when%20everything%20appears%20to%20render%20fine%20with%20Playwright.%20The%20most%20common%20cause%20is%20a%20data%20type%20mismatch%3A%20if%20your%20query%20returns%20numeric%20values%20as%20strings%20instead%20of%20numbers%2C%20Superset%20charts%20may%20render%20as%20empty%20or%20only%20show%20NULL%20values.%20You%20can%20check%20this%20in%20SQL%20Lab%E2%80%94make%20sure%20your%20metrics/values%20are%20numeric%2C%20not%20string%20types.%20Fixing%20the%20data%20type%20in%20your%20query%20or%20database%20should%20resolve%20this%20for%20most%20chart%20types%20%5B%28source%29%5D%28https%3A//github.com/apache/superset/issues/33174%29.%0A%0AIf%2
0your%20data%20is%20truly%20zero%2C%20Superset%20will%20render%20an%20empty%20chart%20by%20design%3B%20Playwright%20just%20waits%20for%20rendering%20and%20doesn%27t%20alter%20the%20data%20%5B%28source%29%5D%28https%3A//github.com/apache/superset/blob/master/superset/utils/webdriver.py%29.%20Also%2C%20confirm%20the%20issue%20isn%27t%20specific%20to%20a%20certain%20chart%20type%20or%20dataset%20by%20testing%20with%20different%20charts%20and%20data%20sources.%0A%0AFor%20Playwright%20automation%2C%20ensure%20you%20wait%20for%20the%20dashboard%20and%20all%20chart%20containers%20to%20be%20visible%2C%20all%20loading%20spinners%20to%20disappear%2C%20and%20add%20a%20short%20delay%20%281%E2%80%932%20seconds%29%20for%20chart%20animations%20to%20finish%20before%20taking%20screenshots%20%5B%28source%29%5D%28https%3A//github.com/apache/superset/discussions/36845%29.%0A%0AIf%20you%20still%20see%20empty%20charts%2C%20check%20Superset%20permissions%20and%20configuration%20to%20make%20sure%20data%20v
isibility%20isn%27t%20restricted%2C%20and%20review%20logs%20or%20browser%20console%20for%20subtle%20errors.%20If%20you%20can%20share%20the%20chart%20type%2C%20data%20source%2C%20and%20a%20sample%20query%20result%2C%20I%20can%20help%20dig%20deeper.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36853)
GitHub link: https://github.com/apache/superset/discussions/36853#discussioncomment-15363692
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. [superset]
Posted by "1sanqian (via GitHub)" <gi...@apache.org>.
GitHub user 1sanqian added a comment to the discussion: Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
My Superset charts are integrated with PlayWright. All charts and data on the page render perfectly without any unexpected errors before I take a screenshot. However, I'm encountering situations where the data is 0 and the charts are empty. What could be the problem? When I log in directly to the chart page, there is data and charts, and this doesn't happen. What's causing this issue, and how can I resolve it? I'm using C#, and my Superset version is 4.0.1.[@dosu](https://go.dosu.dev/dosubot)
GitHub link: https://github.com/apache/superset/discussions/36853#discussioncomment-15363756
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org