GitHub user dosubot[bot] added a comment to the discussion: Superset 
Report/Alert Failures After Update to 4.1.2 - Invalid Cookie Domain Error

<!-- Greeting -->
Hello @lsikora1! I'm here to help you solve bugs, answer questions, and assist 
you in becoming a contributor while you wait for a human maintainer. If you 
need anything, just let me know!

<!-- Answer -->
I found a similar unsolved discussion regarding issues with alerts and 
reporting, specifically related to Selenium timeouts and DNS resolution, which 
might be relevant to your problem. You can check it out here: [Alerts & 
Reporting - Selenium timed out / DNS 
Resolution](https://github.com/apache/superset/discussions/28454) 
<sup>[[1]](https://github.com/apache/superset/discussions/28454)</sup>.

Regarding your issue with the `InvalidCookieDomainException` after updating to 
Superset version 4.1.2, it's important to note that this version introduced 
changes to the `fetch_csrf_token` function to align with HTTP standards, which 
could affect cookie handling 
<sup>[[2]](https://github.com/apache/superset/blob/master/UPDATING.md)</sup>. 

The `authenticate_webdriver` function in `machine_auth.py` sets cookies on the 
`WebDriver` without explicitly specifying the domain, which defaults to the 
domain of the current URL loaded in the `WebDriver` 
<sup>[[3]](https://github.com/apache/superset/blob/master/superset/utils/machine_auth.py)</sup>.
 Ensure that the domain of the URL you are accessing matches the domain for 
which the cookies are valid. You might also want to check the 
`SESSION_COOKIE_DOMAIN` setting in your `superset_config.py` to ensure it is 
correctly configured for your domain 
<sup>[[4]](https://github.com/apache/superset/blob/master/docs/docs/configuration/networking-settings.mdx)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/955343a7-4d36-4213-b92c-79a9abd560ce?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/33186#discussioncomment-12879395

----
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