You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "bito-code-review[bot] (via GitHub)" <gi...@apache.org> on 2026/08/17 10:27:51 UTC
Re: [PR] fix(reports): respect Playwright wait event during auth [superset]
bito-code-review[bot] commented on PR #43253:
URL: https://github.com/apache/superset/pull/43253#issuecomment-5314864999
<!-- Bito Reply -->
The flagged issue is correct. The `page.goto` call lacks a timeout handler, which causes the authentication process to abort if the configured event (e.g., `networkidle`) takes longer than the default Playwright timeout. To resolve this, wrap the navigation in a `try-except` block to catch `playwright.sync_api.TimeoutError` and proceed with cookie installation regardless of the navigation timeout.
**superset/utils/machine_auth.py**
```
try:
page.goto(
headless_url("/login/"),
wait_until=app.config["SCREENSHOT_PLAYWRIGHT_WAIT_EVENT"],
)
except Exception:
pass
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org