WebDriverException: Error forwarding the request Connection reset

This error appears when the bot tries to perform a mouse click action on web pages and crashes the bot.

Found this current workaround:
Create another recording of the bot that interacts with the browser window using mouse clicks and the problem is solved.

What triggers this issue? Though this is an infrequent issue that we face on our end, knowing what causes it will be very helpful in the future. Our bots were built and run on version 2.2.0.

Hi @tinwy.
Did you receive this exception when playing bot in Studio or in Control Tower?

Hi @Lera, it happened when playing the bot in Studio. We did not export the script into a bot task, but simply played the recording.

Thank you. Please provide log files from folder C:\RPAExpress\RPA\logs, you can zip them into one archive.

I received your logs, but didn’t find the exception that you mentioned. Do you remember when this occurs last time? Can you send log files for this date?
Thank you in advance.

It happened this morning (12.07.2019). This should be the error:

2019-07-12 08:55:03,500 ERROR [qtp1025309396-13] org.openqa.grid.web.servlet.handler.RequestHandler.process[:133] - cannot forward the request Connection reset
java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[na:1.8.0_121]
	at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_121]
	at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:282) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) ~[httpcore-4.4.6.jar:4.4.6]
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118) ~[httpclient-4.5.3.jar:4.5.3]
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.3.jar:4.5.3]
	at org.openqa.grid.internal.TestSession.sendRequestToNode(TestSession.java:454) ~[rpa-selenium-server-9.2.0.4.jar:na]
	at org.openqa.grid.internal.TestSession.forward(TestSession.java:235) ~[rpa-selenium-server-9.2.0.4.jar:na]
	at org.openqa.grid.web.servlet.handler.RequestHandler.forwardRequest(RequestHandler.java:91) ~[rpa-selenium-server-9.2.0.4.jar:na]
	at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:125) ~[rpa-selenium-server-9.2.0.4.jar:na]
	at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:84) [rpa-selenium-server-9.2.0.4.jar:na]
	at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:68) [rpa-selenium-server-9.2.0.4.jar:na]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
	at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.Server.handle(Server.java:564) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) [jetty-repacked-9.4.5.v20170502.jar:3.1.0]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]

Thanks for the information! We investigated from our side and found out that was a bug with one of RPA components. As I know, this issue was fixed in next releases, so I recommend you to update RPA Express to the latest version.

2 Likes

Thank you! Would upgrading to 2.3.4 fix this issue? Or would we have to wait for the next release 2.3.5?

You can upgrade with the 2.3.4, because I don’t have information about new release date yet. Also I recommend to test upgrade before going to production environment, if possible.

1 Like