TargetClosedException when using Proxy
See original GitHub issueDescription
A TargetClosedException occurs immediately after the browser window is opened when using proxies with PuppeteerSharp 1.15.0 and 1.16.0; rolling back to 1.14.1 it is working fine. This is occurring both headless and non-headless, in Chrome and Chromium, on Windows and Linux. I am also not using request interception.
Expected behavior:
Successful proxy usage.
Actual behavior:
Protocol error(Page.navigate): Target closed. (NetworkManager failed to process Fetch.requestPaused. Value cannot be null.
Parameter name: key. at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNullException()
at System.Collections.Concurrent.ConcurrentDictionary`2.set_Item(TKey key, TValue value)
at PuppeteerSharp.NetworkManager.OnRequestPausedAsync(FetchRequestPausedResponse e)
at PuppeteerSharp.NetworkManager.Client_MessageReceived(Object sender, MessageEventArgs e)) Protocol error(Page.navigate): Target closed. (NetworkManager failed to process Fetch.requestPaused. Value cannot be null.
Parameter name: key. at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNullException()
at System.Collections.Concurrent.ConcurrentDictionary`2.set_Item(TKey key, TValue value)
at PuppeteerSharp.NetworkManager.OnRequestPausedAsync(FetchRequestPausedResponse e)
at PuppeteerSharp.NetworkManager.Client_MessageReceived(Object sender, MessageEventArgs e))
Versions
.NET Core 2.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
TargetClosedException when using Proxy · Issue #1145
A TargetClosedException occurs immediately after the browser window is opened when using proxies with PuppeteerSharp 1.15.0 and 1.16.0; ...
Read more >Puppeteer - Protocol error (Page.navigate): Target closed
The Target closed exception is thrown when you are trying to run a function, but the target (tab) was already closed.
Read more >Troubleshooting for RDS Proxy
Check the target of the RDS DB instance or Aurora DB cluster status to see if it's unavailable. Check if there are long-running...
Read more >System.Net.Sockets.SocketException: No connection could ...
NET application show error message below when I close Fidler program on Windows ... It rollbacks properly (Use proxy server is unchecked).
Read more >Troubleshooting the proxy server
This topic helps you to solve problems that you might encounter with your proxy server.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome. I just wanted to confirm that I’ve updated to 1.17.1 and it appears everything is working fine.
Also, thank you @kerohero that is correct. I did not try the ProxyManager service myself, but did discover that part of the issue above was authentication not being applied somehow.
I can confirm that it’s solved too, updated to 1.17.1 and everything runs as expected.