C
C#15mo ago
Hercules

❔ I have this serviceWorker running Selenium for screenshots and its not working properly.

I need help identifying my problem and i have reasons to believe there is a leak somewhere in the code. Since the windows service is still running all night but not giving back any logs (using serilog) after sometime. I have handled the my exceptions that I want to keep pushing for a screenshot. But I believe in the longer run the selenium webdriver clashes with the ports.
Description: The process was terminated due to an unhandled exception.
Exception Info: OpenQA.Selenium.WebDriverException: An unknown exception was encountered sending an HTTP request to the remote WebDriver server for URL http://localhost:51960/session. The exception message was: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
Description: The process was terminated due to an unhandled exception.
Exception Info: OpenQA.Selenium.WebDriverException: An unknown exception was encountered sending an HTTP request to the remote WebDriver server for URL http://localhost:51960/session. The exception message was: An error occurred while sending the request.
---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
I've tried to handle the ports by using an ConcurrentDictionary and giving every instance of webdriver its own port. But i have zero understanding why my logs stops becuase i have nothing from the event viewer or any output. The code is in the link since its to long to share. https://codeshare.io/QneYzm
1 Reply
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.