ProxyRequestError: Could not proxy command to remote server. Original error: 404

Hello,

I am trying to access app source of my windows application (WPF platform )

Appium - 1.7.1
Winappdriver- 0.9
Windows 10

Following is log :disappointed_relieved:

The server is stopped

[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 5 ms - 40
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe”,“deviceName”:“WindowsPC”,“platformName”:“Windows”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe”,“deviceName”:“WindowsPC”,“platformName”:“Windows”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1512975035942 (12:20:35 GMT+0530 (India Standard Time))
[Appium] Creating new WindowsDriver (v0.5.0) session
[Appium] Capabilities:
[Appium] app: ‘C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe’
[Appium] deviceName: ‘WindowsPC’
[Appium] platformName: ‘Windows’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] The following capabilities were provided, but are not recognized by appium: app, connectHardwareKeyboard.
[BaseDriver] Session created with session id: 3c892c0a-3d5a-491e-89ec-850edf281a57
[WinAppDriver] Verifying WinAppDriver is installed with correct checksum
[WinAppDriver] WinAppDriver changed state to ‘starting’
[WinAppDriver] Killing any old WinAppDrivers on same port, running: FOR /F “usebackq tokens=5” %a in (netstat -nao ^| findstr /R /C:"4724 ") do (FOR /F “usebackq” %b in (TASKLIST /FI "PID eq %a" ^| findstr /I winappdriver.exe) do (IF NOT %b=="" TASKKILL /F /PID %a))
[WinAppDriver] No old WinAppDrivers seemed to exist
[WinAppDriver] Spawning winappdriver with: undefined 4724/wd/hub
[WinAppDriver] [STDOUT] Windows Application Driver Beta listening for requests at: http://127.0.0.1:4724/wd/hub
[WinAppDriver] WinAppDriver changed state to ‘online’
[JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:4724/wd/hub/session] with body: {“desiredCapabilities”:{“app”:“C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe”,“deviceName”:“WindowsPC”,“platformName”:“Windows”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[WinAppDriver] WinAppDriver exited unexpectedly with code 2147500037, signal null
[WinAppDriver] WinAppDriver changed state to ‘stopped’
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] Address ‘http://127.0.0.1:4724/wd/hub’ is already in use
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] Failed to initialize: 0x80004005
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] ==========================================
[WinAppDriver] [STDOUT] POST /wd/hub/session HTTP/1.1
[WinAppDriver] [STDOUT] Accept: /
[WinAppDriver] [STDOUT] Connection: keep-alive
[WinAppDriver] [STDOUT] Content-Length: 205
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT] Host: 127.0.0.1:4724
[WinAppDriver] [STDOUT] User-Agent: appium
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] SessionManager - Creating session
[WinAppDriver] [STDOUT] SessionManager - WinAppDriver succeeded loading MitaBroker
[WinAppDriver] [STDOUT] SessionManager - Application launched
[WinAppDriver] [STDOUT] SessionManager - Session successfully created: 2F20FDF9-0B48-4781-966B-C4F74971632E
[WinAppDriver] [STDOUT] HTTP/1.1 200 OK
[WinAppDriver] [STDOUT] Content-Length: 175
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] {“sessionId”:“2F20FDF9-0B48-4781-966B-C4F74971632E”,“status”:0,“value”:{“app”:“C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe”,“platformName”:“Windows”}}
[JSONWP Proxy] Got response with status 200: {“sessionId”:“2F20FDF9-0B48-4781-966B-C4F74971632E”,“status”:0,“value”:{“app”:“C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe”,“platformName”:“Windows”}}
[Appium] New WindowsDriver session created successfully, session 3c892c0a-3d5a-491e-89ec-850edf281a57 added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1512975043214 (12:20:43 GMT+0530 (India Standard Time))
[MJSONWP] Responding to client with driver.createSession() result: {“app”:“C:\Program Files (x86)\Qualitrol\ECBM-Client\ECBM Client WPF.exe”,“deviceName”:“WindowsPC”,“platformName”:“Windows”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}
[HTTP] <-- POST /wd/hub/session 200 7276 ms - 253
[HTTP] --> POST /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/context {“name”:“NATIVE_APP”}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[JSONWP Proxy] Proxying [POST /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/context] to [POST http://127.0.0.1:4724/wd/hub/session/2F20FDF9-0B48-4781-966B-C4F74971632E/context] with body: {“name”:“NATIVE_APP”}
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] ==========================================
[WinAppDriver] [STDOUT] POST /wd/hub/session/2F20FDF9-0B48-4781-966B-C4F74971632E/context HTTP/1.1
[WinAppDriver] [STDOUT] Accept: /
[WinAppDriver] [STDOUT] Connection: keep-alive
[WinAppDriver] [STDOUT] Content-Length: 21
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT] Host: 127.0.0.1:4724
[WinAppDriver] [STDOUT] User-Agent: appium
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] {“name”:“NATIVE_APP”}
[WinAppDriver] [STDOUT] ### WinAppDriver::CommandHandler::Session::HandleCommandAsMidPoint - Command context is not recognized
[WinAppDriver] [STDOUT] HTTP/1.1 404 Not Found
[WinAppDriver] [STDOUT] Content-Length: 144
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] {“status”:9,“value”:{“error”:“unknown command”,“message”:“Command not recognized: POST: /session/2F20FDF9-0B48-4781-966B-C4F74971632E/context”}}
[MJSONWP] Encountered internal error running command: {“jsonwp”:{“status”:9,“value”:{“error”:“unknown command”,“message”:“Command not recognized: POST: /session/2F20FDF9-0B48-4781-966B-C4F74971632E/context”}}} ProxyRequestError: Could not proxy command to remote server. Original error: 404 - {“status”:9,“value”:{“error”:“unknown command”,“message”:“Command not recognized: POST: /session/2F20FDF9-0B48-4781-966B-C4F74971632E/context”}}
at JWProxy.proxy$ (C:\Users\jsingh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:152:13)
at tryCatch (C:\Users\jsingh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\jsingh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\jsingh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\jsingh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/context 500 15 ms - 207
[HTTP] --> GET /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/source {}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[JSONWP Proxy] Proxying [GET /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/source] to [GET http://127.0.0.1:4724/wd/hub/session/2F20FDF9-0B48-4781-966B-C4F74971632E/source] with body: {}
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] ==========================================
[WinAppDriver] [STDOUT] GET /wd/hub/session/2F20FDF9-0B48-4781-966B-C4F74971632E/source HTTP/1.1
[WinAppDriver] [STDOUT] Accept: /
[WinAppDriver] [STDOUT] Connection: keep-alive
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT] Host: 127.0.0.1:4724
[WinAppDriver] [STDOUT] User-Agent: appium
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[JSONWP Proxy] Got response with status 200: “{“sessionId”:“2F20FDF9-0B48-4781-966B-C4F74971632E”,“status”:0,“value”:”

[JSONWP Proxy] Replacing sessionId 2F20FDF9-0B48-4781-966B-C4F74971632E with 3c892c0a-3d5a-491e-89ec-850edf281a57
[HTTP] <-- GET /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/source 200 948 ms - 70607
[WinAppDriver] [STDOUT] HTTP/1.1 200 OK
[WinAppDriver] [STDOUT] Content-Length: 70607
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] {“sessionId”:“2F20FDF9-0B48-4781-966B-C4F74971632E”,“status”:0,“value”:"
[HTTP] --> GET /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/screenshot {}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[JSONWP Proxy] Proxying [GET /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/screenshot] to [GET http://127.0.0.1:4724/wd/hub/session/2F20FDF9-0B48-4781-966B-C4F74971632E/screenshot] with body: {}
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] ==========================================
[WinAppDriver] [STDOUT] GET /wd/hub/session/2F20FDF9-0B48-4781-966B-C4F74971632E/screenshot HTTP/1.1
[WinAppDriver] [STDOUT] Accept: /
[WinAppDriver] [STDOUT] Connection: keep-alive
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT] Host: 127.0.0.1:4724
[WinAppDriver] [STDOUT] User-Agent: appium
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT]
[JSONWP Proxy] Got response with status 200: "{“sessionId”:“2F20FDF9-0B48-4781-966B-C4F74971632E”,“status”:0,“value”:"iVBORw0KGgoAAAANSUhEUgAAA9oAAALnCAIAAAD55qjXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAP+6SURBVHhe7P0JgGRlee+P13bOqTq1V3f1Mj09GzPMgGyKiqAIEdBg1Gj+kcSruYAazXrVm0Rzc1WCksTldxNNct2igjcaIzHRqIAGUNAoGEQFwWEZZp/pvWvft//neU91Tw/LMMhAzQzPZ2qqz/qed33e7/Oe95zyj71/q09RFEVRFEVRlEEgcnzq3Vv6a4qiKIqiKIqiPF2MX3VfoL+oKIqiKIqiKMrTjspxRVEURVEURRkYKscVRVEURVEUZWCoHFcURVEURVGUgaFyXFEURVEURVEGxqHkuD/gX/7EYtF//bcvd32d5U/55htb6bTP7z/wURRFURRFURTliXBYo+Pf/vZNxXLxNb/2mv66wb3gJcHcfO6Ht/XXFUVRFEVRFEV5gjy+HN+1a8d555/fX3kEyec/r7k4319RFEVRFEVRFOWJ8Dhy/Cv/9q+rJye95Xt+dk8wEFr+/Nftt3vbQ+mUjpEriqIoiqIoTwX+Q9I/6GmBy9155539lRWw8cnE5FByPOq6r3r1r3rLv/vW3zn99DO8ZY+zz3nRpa//LW9Zxsht21tewQ1vNdnk8dYb+lufQrZ99IX+F350W3/tiSBn9ukH8KiRNxsfkRJz8i92XUVRFEVRFOVx6D0G/d1PFz/60Y/OfuGLHqbIWWUju/rrT5xDyfGPf+Lj3sLePXs+9Q+f9pZX8vkvfnF5jLx5/Te8hYM55yMP9vPrkxf3Nz0CNO4R0rIb3/b93vfftrG/driImt7083f349n7nO+6vt5eivyDH7nn5csa/Jxz7rnq4Nje8OG3/6C/qCiKoiiKohynnHnmmbd9/z9XKnJPi7ORXd6WX4BDyfHXv+H

[JSONWP Proxy] Replacing sessionId 2F20FDF9-0B48-4781-966B-C4F74971632E with 3c892c0a-3d5a-491e-89ec-850edf281a57
[HTTP] <-- GET /wd/hub/session/3c892c0a-3d5a-491e-89ec-850edf281a57/screenshot 200 76 ms - 497030
[WinAppDriver] [STDOUT] HTTP/1.1 200 OK
[WinAppDriver] [STDOUT] Content-Length: 497030
[WinAppDriver] [STDOUT] Content-Type: application/json
[WinAppDriver] [STDOUT]
[WinAppDriver] [STDOUT] AhACP5MYnMFDCM/XUG/tB27dV2xmWc6jZ09B9F7QvLgcgfPbne160EGagFlfffY7t1q+f/tmZbVs1P29vZ2iAsSRwaWUmjpU7Xk0bzTroP+1oInnAzBrVnlVBo0RZWDvaBptR/YgIK2YzeaiQLnS0LrYPuchFhVHydUQzeTWsjC0X6MxqurLREelKmaRxNWydDUa1zwPw9hw3YYfADspYqNmiyJHAev1utC7JnpaGK15VtTcAOQ6nozhhTQK42b6YngGSyh61iyMBxQGWGPjMHi1irXUtkE+kItACH4JADtmlRXDHnWMaK8uDalBNZv1hpmTWo2SZDQc9urQ2CkWuWW78ziZzGZ3797c6rQDGOdqVi38mEcRNeFBDGak6Y/t0Xg8nc1gLtHITr9/68aNmzdveHXv6vryJ7/4GcJmecHz45PJdNr0/ [
]
Appium server stopped successfully

Pls help !!