GitHub user dosubot[bot] added a comment to the discussion: The error occurs 
when sending the report via email using the PNG content format:error sending 
request for url (https://chromedriver.storage.googleapis.com/LATEST_RELEASE): 
error trying to connect: dns error: failed to lookup address information: Try 
again

<!-- Answer -->
The root cause is that Superset ignores the WEBDRIVER_EXECUTABLE_PATH setting 
and, unless told otherwise, Selenium Manager tries to download ChromeDriver 
from the internet. This triggers the DNS error you’re seeing when your 
environment can’t reach https://chromedriver.storage.googleapis.com.

To fix this, you need to specify the path to your local ChromeDriver in the 
WEBDRIVER_CONFIGURATION['service'] dictionary in your superset_config.py. 
Here’s how you can do it:

```python
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
    "--headless",
    "--disable-gpu",
    "--no-sandbox",
    "--disable-dev-shm-usage",
]
WEBDRIVER_CONFIGURATION = {
    "service": {
        "executable_path": "/usr/local/bin/chromedriver",
        "log_output": "/dev/null",
        "service_args": [],
        "port": 0,
        "env": {},
    },
    "options": {
        "capabilities": {},
        "preferences": {},
        "binary_location": "",
    },
}
```

This tells Superset and Selenium to use your local ChromeDriver and bypass 
Selenium Manager, resolving the DNS error. The WEBDRIVER_EXECUTABLE_PATH 
setting is not used by Superset and has no effect in this context 
[reference](https://github.com/apache/superset/blob/23b1fe3b9ebfbde7ccd3c40fcd7a60b6c5ab06df/superset/utils/webdriver.py).

Make sure your ChromeDriver version matches your installed Chrome version for 
best results. If you still see issues, double-check permissions and that the 
path is correct.


<!-- 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/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/643ce681-ed8b-44cb-9c9b-1a72897673aa?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34053)

GitHub link: 
https://github.com/apache/superset/discussions/34053#discussioncomment-13651933

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to