-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[BUG] Private Network Requests Hang When Route Is Registered #12148
Comments
I can repro this. Note: this requires some server running on the localhost. Most likely the upstream issue. |
Scenario: some https site does Investigation revealed the following protocol sequence:
So we get Possible solutions:
|
That's a very good observation @dgozman. I tried to workaround this issue with your first possible solution, but unfortunately that didn't work.
The problem is that after the first I'd like to investigate understanding why the same scenario works when the interception is disabled and why it fails when it is enabled. Do you know where can I start looking in the code? |
@citizensas This is all implemented in |
This appears to be happening to us too, Does anyone know if this is being worked on either here or within chromium? Are there other issues on this or other repos progressing this that I should follow instead? |
Unfortunately, I have this issue too with Chromium. |
I have this issue too, quite weird behavior. |
I have a workaround that I use. Let's say the issue happens when I try to send a request to some await page.route(
(url) => url.host === '127.0.0.1:8080,
async (route, req) => route.fulfill({
response: await page.request.fetch(req)
})); |
I've deployed an app for testing in private network with using valid SSL wildcard certificate and the request handling doesn't work at all with Chromium (with FF all is OK). In Inspector the request has status code 204, and in the server logs this request didn't receive any data and immediately closed the connection. |
I've tried @citizensas 's solution, but unfortunately I'm using a self-signed cert so the node process throws |
Any updates on this issue? Just testing out Playwright and I believe hitting this as the symptoms/causes are the same and would completely block our usage of Playwright. I did find this issue though and it is hard to tell which issue we are being hit by: #10376 |
@bigcakes If you have a repro that we can run locally, please share. That would definitely help with fixing the issue. |
@dgozman Unfortunately this is a private codebase and network that I am working in, but I was able to mostly workaround it in my PoC with this hacky bit of code:
|
@dgozman any sort of debugging I could do to help figure out this issue? |
@pavelfeldman @dgozman this will likely be a blocker for many corporations in using Playwright, is there anything I could debug on my side to help get to the bottom of this in Playwright? I am happy to, just need a point in the right direction inside Playwright on how/where to debug this issue as there is no feedback when using it that it is getting hung up |
Any resolution for this? |
Looks like this is fixed on the newer versions of Chromium. I installed the browser with the latest Playwright version and it works. If most of the affected users confirm that the issue is indeed fixed for them too, then we can close this issue. |
Works for me as well 🎉 |
Same here! |
Confirmed this is good now |
Context:
Code Snippet
Describe the bug
Let's say I have a website that fetches something from my local server. If I don't stub any network calls in my test, then all works like expected. But if I have a Route defined in my test, then the request to my local (private) network hangs. Even if I have a route that doesn't match any request throughout the test, it'll still fail.
I've created a repository that shows exactly what the issue is about.
https://github.com/citizensas/chromium-private-network-playwright
This is very similar to the #5952 issue.
The text was updated successfully, but these errors were encountered: