-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] proxy.reload: net::ERR_ABORTED #18137
Comments
@gajus Your theory seems legit. I'd recommend recording a trace and looking for "navigated to " in the logs around |
That appears to be indeed the case. What's the correct way to handle this? Do I |
Depends on what your are trying to achieve. If the page navigates itself, perhaps you could just |
In this case, the intent is to ignore what web app is attempting to do, and take user to a new page. Prior to adding // This methods calls a GraphQL query using `page.evaluate()`
await authenticate(page);
await page.goto('/bar');
await baz(); The intent was to authenticate user and redirect to them to However, what happens in practice, the polling mechanism of the app detects that the user was authenticated, and attempts to redirect them to post-login page. The end result was that sometimes when The reason for adding |
I think the easiest would be to let the page redirect to await authenticate(page);
await page.waitForURL('/home');
await page.goto('/bar');
await baz(); |
Where is the facepalm emoji when I need it. Of course that makes the most sense. Thanks. |
I am seeing this happening in our tests:
My theory is that the app is using
window.location
to change the location, which is somehow causing reload to fail.The code that's failing is simply:
The text was updated successfully, but these errors were encountered: