selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Error handler throwing a KeyError for 'status' when response is "400, Could not proxy command to remote server"

Open eduardoreynoso opened this issue 8 years ago • 1 comments

Selenium version: 3.12 Appium-Python-Client: 0.26 Os: macOS High Sierra 10.16.4 Emulator version: Nexus 5 X Api level 27 8.1 Oreo

This error was found while using Appium but I decided to open it here because appium uses Selenium library and its throwing the exception on errorhandler.py line 130: status = value["status"] The response that I am seeing there is:

{'status': 400,
 'value': '{"value":{"message":"Could not proxy command to remote server. '
          'Original error: Error: read '
          'ECONNRESET","stacktrace":"ProxyRequestError: Could not proxy '
          'command to remote server. Original error: Error: read '
          'ECONNRESET\\n    at JWProxy.proxy$ '
          '(/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:152:13)\\n    '
          'at tryCatch '
          '(/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)\\n    '
          'at GeneratorFunctionPrototype.invoke [as _invoke] '
          '(/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)\\n    '
          'at GeneratorFunctionPrototype.prototype.(anonymous function) [as '
          'throw] '
          '(/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)\\n    '
          'at GeneratorFunctionPrototype.invoke '
          '(/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)\\n    '
          'at "}}'}

eduardoreynoso avatar May 24 '18 17:05 eduardoreynoso

errorhandler.py just handled an error that occurs in appium. Please report this issue to Appium project.

barancev avatar Jun 03 '18 12:06 barancev