dosubot[bot] commented on issue #34913: URL: https://github.com/apache/superset/issues/34913#issuecomment-3240077458
<!-- Answer --> This error usually happens when the domain configured for cookies doesn't exactly match the domain Selenium uses to access Superset for screenshots. Make sure your `WEBDRIVER_BASEURL` in `superset_config.py` matches the exact domain, port, and protocol you use to access Superset (for example, if you use `http://localhost:8088`, set `WEBDRIVER_BASEURL = "http://localhost:8088/"`). Avoid mixing `localhost` and `127.0.0.1`, and keep the same domain everywhere—this includes your browser, Superset config, and Selenium settings. More details are in [this discussion](https://github.com/apache/superset/discussions/34122). If you're still seeing screenshot failures, try configuring Chrome/Chromium with these options: `--headless`, `--disable-gpu`, `--disable-dev-shm-usage`, `--no-sandbox`, `--disable-setuid-sandbox`, and `--disable-extensions`. Also, increasing `SCREENSHOT_LOCATE_WAIT` to 30 and `SCREENSHOT_LOAD_WAIT` to 60 seconds can help ([reference](https://github.com/apache/superset/issues/34774)). If Selenium keeps giving you trouble, consider switching to Playwright by setting `PLAYWRIGHT_REPORTS_AND_THUMBNAILS = True` and installing the `playwright` Python package. Playwright is more robust, especially in containerized environments and with dashboards using Deck.gl ([reference](https://github.com/apache/superset/issues/34774)). <!-- 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/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1e8f4060-21d5-4bc6-8d9c-16a870b69f63?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](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/issues/34913) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
