Open ignamiguel opened 7 years ago
Nope, I haven't actually seen this one yet. I wonder what could be the problem here - the reporter / webdriver itself shouldn't be doing any network requests to begin with when it takes a screenshot.
I'm not sure if that should matter, but perhaps your application does some network request that is not completed yet when your test finishes?
I apologize in advance if this is not a reporter issue.
I share some workarounds I'm doing:
If the reporter is removed from the config file (turned off), the SocketException
is not thrown.
The javadoc for SocketException states that it is
Thrown to indicate that there is an error in the underlying protocol such as a TCP error
I read that "Connection reset by peer" generally means that the remote system closed the connection.
My understanding is that some component (i.e. reporter, protractor, webdriver manager, chromedriver, chrome) is closing the connection for some reason.
These are the version I'm using:
"protractor": "^5.1.1"
"protractor-jasmine2-screenshot-reporter": "^0.3.5"
"webdriver-manager": "^12.0.6"
"selenium-webdriver": "3.0.1"
Have u managed to resolve this issue, since i have the same problem? "protractor": "5.4.2" "protractor-jasmine2-screenshot-reporter": "^0.5.0" "webdriver-manager": "12.1.6" "selenium-webdriver": "chromedriver=71.0.3578.80"
@x-max not really, I haven't had much time for this project as of late.
Hi guys,
I'm getting the
WebDriverError: java.net.SocketException: Connection reset by peer (connect failed)
apparently from this task:From: Task: WebDriver.takeScreenshot()
As I can see in the console output, the
protractor-jasmine2-screenshot-reporter
is trying to take a screenshot and it's now throwing that error.Here is the complete output.
Any ideas? Is this a known issue? Regards