question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TargetClosedException when using Proxy

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
null511commented, May 27, 2019

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.

0reactions
Kiro369commented, May 27, 2019

I can confirm that it’s solved too, updated to 1.17.1 and everything runs as expected.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found