WinAppDriver: Random HTTP/1.1 500 Internal Error

Sometimes during the tests I receive HTTP/1.1 500 Internal Error as below and the test is interrupted.


POST /session/A0697BE9-9484-44D5-8F63-D8CF51C24E2E/element/10956.279874872.0/click HTTP/1.1
Accept: application/json, image/png
Content-Length: 2
Content-Type: application/json;charset=utf-8
Host: 127.0.0.1:4723

{}
HTTP/1.1 500 Internal Error
Content-Length: 133
Content-Type: application/json

{"status":13,"value":{"error":"unknown error","message":"An unknown error occurred in the remote end while processing the command."}}

Is there any way to get more info what went wrong (any event logged?) or any workaround to such issues?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

@timotiusmargo, The RC2 works great! and is extremely quick comparing to previous releases.

Is there any updates? I get the same issue constantly. It launches the application but fails after. It launches successfully only if previous launches is failed so the instance of the is up and running( it can’t be disposed after failed run).

\Windows Application Driver>WinAppDriver.exe
Windows Application Driver Beta listening for requests at: http://127.0.0.1:4723/
Press ENTER to exit.

==========================================
POST /session HTTP/1.1
Accept: application/json, image/png
Connection: Keep-Alive
Content-Length: 177
Content-Type: application/json;charset=utf-8
Host: 127.0.0.1:4723

{"desiredCapabilities":{"app":"D:\rep\allo\Allo.exe","deviceName":"WindowsPC","platformName":"Windows"}}
SessionManager - Creating session
SessionManager - WinAppDriver succeeded loading MitaBroker
HTTP/1.1 500 Internal Error
Content-Length: 133
Content-Type: application/json

{"status":13,"value":{"error":"unknown error","message":"An unknown error occurred in the remote end while processing the command."}}

==========================================
POST /session HTTP/1.1
Accept: application/json, image/png
Connection: Keep-Alive
Content-Length: 177
Content-Type: application/json;charset=utf-8
Host: 127.0.0.1:4723

{"desiredCapabilities":{"app":"D:\rep\allo\Allo.exe","deviceName":"WindowsPC","platformName":"Windows"}}
SessionManager - Creating session
SessionManager - WinAppDriver succeeded loading MitaBroker
SessionManager - Application launched
SessionManager - Session successfully created: 424D133E-B1F1-472D-9C05-FCA043714426
HTTP/1.1 200 OK
Content-Length: 200
Content-Type: application/json

{"sessionId":"424D133E-B1F1-472D-9C05-FCA043714426","status":0,"value":{"app":"D:\rep\allo\Allo.exe","platformName":"Windows"}}

==========================================
POST /session/424D133E-B1F1-472D-9C05-FCA043714426/timeouts HTTP/1.1
Accept: application/json, image/png
Content-Length: 31
Content-Type: application/json;charset=utf-8
Host: 127.0.0.1:4723

{"type":"implicit","ms":4000.0}
HTTP/1.1 200 OK
Content-Length: 63
Content-Type: application/json

{"sessionId":"424D133E-B1F1-472D-9C05-FCA043714426","status":0}