You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sujeeth62 (via GitHub)" <gi...@apache.org> on 2025/11/20 13:04:14 UTC
[D] Report ERR_CERT_AUTHORITY_INVALID [superset]
GitHub user sujeeth62 created a discussion: Report ERR_CERT_AUTHORITY_INVALID
Getting this error while taking screenshot in Report using Playwright.
superset.commands.report.exceptions.ReportScheduleScreenshotFailedError: Failed taking a screenshot Page.goto: net::ERR_CERT_AUTHORITY_INVALID
GitHub link: https://github.com/apache/superset/discussions/36206
----
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] Report ERR_CERT_AUTHORITY_INVALID [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Report ERR_CERT_AUTHORITY_INVALID
<!-- Answer -->
The ERR_CERT_AUTHORITY_INVALID error means Playwright can't trust the SSL certificate presented by your Superset instance—this usually happens with self-signed or untrusted certificates. Playwright enforces SSL validation by default, so screenshotting fails if the certificate isn't recognized.
To bypass this in Superset, add `"--ignore-certificate-errors"` to your `WEBDRIVER_OPTION_ARGS` in `superset_config.py`. For example:
```python
WEBDRIVER_OPTION_ARGS = [
"--no-sandbox",
"--disable-setuid-sandbox",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--disable-extensions",
"--ignore-certificate-errors",
"--window-size=1280,1024"
]
```
This tells Chromium to ignore certificate errors when Playwright launches the browser for screenshots. You can find more details in the [official configuration docs](https://github.com/apache/superset/discussions/35327).
Keep in mind: ignoring certificate errors is fine for internal or testing environments, but it's not recommended for production—use a trusted certificate authority for public-facing deployments.
If you still see issues, check that the `PLAYWRIGHT_REPORTS_AND_THUMBNAILS` feature flag is enabled, the headless browser is installed in your worker container, and the worker can reach Superset via `WEBDRIVER_BASEURL`. Reviewing Celery worker logs can also help pinpoint problems.
<!-- 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/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/88bfd353-d35a-4932-b761-6f97a3c68ba9?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](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/36206)
GitHub link: https://github.com/apache/superset/discussions/36206#discussioncomment-15026131
----
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] Report ERR_CERT_AUTHORITY_INVALID [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: Report ERR_CERT_AUTHORITY_INVALID
<!-- Answer -->
The ERR_CERT_AUTHORITY_INVALID error means Playwright can't trust the SSL certificate presented by your Superset instance—this usually happens with self-signed or untrusted certificates. Playwright enforces SSL validation by default, so screenshotting fails if the certificate isn't recognized.
To bypass this in Superset, add `"--ignore-certificate-errors"` to your `WEBDRIVER_OPTION_ARGS` in `superset_config.py`. For example:
```python
WEBDRIVER_OPTION_ARGS = [
"--no-sandbox",
"--disable-setuid-sandbox",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--disable-extensions",
"--ignore-certificate-errors",
"--window-size=1280,1024"
]
```
This tells Chromium to ignore certificate errors when Playwright launches the browser for screenshots. You can find more details in the [official configuration docs](https://github.com/apache/superset/discussions/35327).
Keep in mind: ignoring certificate errors is fine for internal or testing environments, but it's not recommended for production—use a trusted certificate authority for public-facing deployments.
If you still see issues, check that the `PLAYWRIGHT_REPORTS_AND_THUMBNAILS` feature flag is enabled, the headless browser is installed in your worker container, and the worker can reach Superset via `WEBDRIVER_BASEURL`. Reviewing Celery worker logs can also help pinpoint problems.
<!-- 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=88bfd353-d35a-4932-b761-6f97a3c68ba9) [](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/36206#discussioncomment-15026131
----
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