-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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]: .NET - Fetch.getResponseBody error when Network monitoring enabled #10248
Comments
@Dreamescaper, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Today I was able to get another similar error. This one is very rare though, I've seen it only once so far.
|
Just got the same error during the execution on ADO Windows agent and Chrome 97:
|
I am getting this error as well @mialeska or @Dreamescaper, were you able to resolve this? |
@rhamblin _devTools = ((IDevTools)_driver).GetDevToolsSession().GetVersionSpecificDomains<DevToolsSessionDomains>();
await _devTools.Network.Enable(new EnableCommandSettings());
_devTools.Network.RequestWillBeSent += RequestWillBeSent;
_devTools.Network.ResponseReceived += ResponseReceived;
_devTools.Network.LoadingFinished += LoadingFinished; |
Just to check if this is still valid, is this happening also with the most recent version (4.4.0)? |
yes, it is happening for me as well on both 4.4.0 and 4.5.0 |
still happening - anyone has a workaround for it? |
I can also confirm that it's still happening with the latest version |
The current DevTools implementation in .NET is not ideal, and we are looking for people who are interested in making it better. |
I have changed Selenium to Playwright and everything works well. |
Have same issues, random exceptions going through: using IWebDriver driver = new ChromeDriver(chromeOptions);
_manager = new NetworkManager(driver);
_manager.NetworkResponseReceived += ResponseHandler;
_manager.StartMonitoring();
driver.Navigate().GoToUrl(url); My usings:
|
Hi
I'll add that I'm running this code in a loop with intervals of 30 seconds and every time the following exception is thrown after different amount of iterations:
This error is a showstopper (application crash). |
Fixed by #12486, try the latest v4.12.2 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
We use Network monitoring to log requests and responses for failed tests.
Unfortunately, sometimes we receive the following errors:
It happens it random places, and we cannot reproduce that consistently.
Even worse that it makes the whole test run crash.
How can we reproduce the issue?
Unfortunately, I don't know how to reproduce this issue consistently. Sometimes it happens, sometimes it doesn't.
I'll update this issue if I am able to find a repro case
Relevant log output
Operating System
Windows 10, Linux
Selenium version
.NET 4.1.0
What are the browser(s) and version(s) where you see this issue?
Chrome 97
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 97.0.4692.7100
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: