While running code appium does not respond and code does not work

I am running code and while running code appium does not respond several times. It gives following error
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“appActivity”:“app.via.MainActivity”,“appPackage”:“app.via”,“deviceName”:“ZY22469WG9”,“platformName”:“Android”,“platformVersion”:“7.1.1”},“capabilities”:{“desiredCapabilities”:{“appActivity”:“app.via.MainActivity”,“appPackage”:“app.via”,“deviceName”:“ZY22469WG9”,“platformName”:“Android”,“platformVersion”:“7.1.1”},“firstMatch”:[{“platformName”:“android”}]}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“appActivity”:“app.via.MainActivity”,“appPackage”:“app.via”,“deviceName”:“ZY22469WG9”,“platformName”:“Android”,“platformVersion”:“7.1.1”},null,{“desiredCapabilities”:{“appActivity”:“app.via.MainActivity”,“appPackage”:“app.via”,“deviceName”:“ZY22469WG9”,“platformName”:“Android”,“platformVersion”:“7.1.1”},“firstMatch”:[{“platformName”:“android”}]}]
[BaseDriver] Event ‘newSessionRequested’ logged at 1512989667346 (16:24:27 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v1.28.1) session
[Appium] Capabilities:
[Appium] appActivity: ‘app.via.MainActivity’
[Appium] appPackage: ‘app.via’
[Appium] deviceName: ‘ZY22469WG9’
[Appium] platformName: ‘Android’
[Appium] platformVersion: ‘7.1.1’
[BaseDriver] Session created with session id: d5be74cd-40a9-41b4-b6c9-ced05a66db0c
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_141
[ADB] Checking whether adb is present
[ADB] Using adb.exe from D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[ADB] Could not find devices, restarting adb server…
[ADB] Restarting adb
[ADB] Killing adb server on port 5037
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android ‘7.1.1’
[ADB] Setting device id to ZY22469WG9
[ADB] Getting device platform version
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“getprop”,“ro.build.version.release”]
[ADB] Current device property ‘ro.build.version.release’: 7.1.1
[AndroidDriver] Using device: ZY22469WG9
[ADB] Checking whether adb is present
[ADB] Using adb.exe from D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe
[ADB] Setting device id to ZY22469WG9
[AndroidDriver] App file was not listed, instead we’re going to run app.via directly on the device
[AndroidDriver] Checking whether package is present on the device
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“pm”,“list”,“packages”,“app.via”]
[AndroidDriver] Starting Android session
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“wait-for-device”]
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“echo”,“ping”]
[Logcat] Starting logcat capture
[AndroidDriver] Pushing settings apk to device…
[ADB] Uninstalling and re-installing ‘io.appium.settings’
[ADB] Uninstalling io.appium.settings
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[ADB] App is installed
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“am”,“force-stop”,“io.appium.settings”]
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“uninstall”,“io.appium.settings”]
[ADB] ADB command output: Success
[ADB] io.appium.settings was successfully uninstalled
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[ADB] App is not installed
[ADB] App ‘C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk’ not installed. Installing
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“install”,“C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk”]
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“getprop”,“ro.build.version.sdk”]
[ADB] Current device property ‘ro.build.version.sdk’:
[ADB] Device API level:
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Getting connected devices…
[ADB] Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[ADB] Error: Error finding if process exists. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:822:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Error finding if process exists. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:822:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[AndroidDriver] Failed to launch settings app: Error finding if process exists. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
[ADB] Getting connected devices…
[ADB] Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[ADB] Error: Error getting device API level. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:58:11)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
Error: Error getting device API level. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:58:11)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[AndroidDriver] Unable to set mock location for app ‘io.appium.settings’: Error getting device API level. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
[AndroidDriver] Pushing unlock helper app to device…
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“install”,“C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“install”,“C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[ADB] Application ‘C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk’ already installed. Continuing.
[ADB] Getting device platform version
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“getprop”,“ro.build.version.release”]
[ADB] Current device property ‘ro.build.version.release’: 7.1.1
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“wm”,“size”]
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“getprop”,“ro.product.model”]
[ADB] Current device property ‘ro.product.model’: Moto Z2 Play
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\Reshma\Softwares\AndroidSDK\sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY22469WG9”,“shell”,“getprop”,“ro.product.manufacturer”]
[ADB] Current device property ‘ro.product.manufacturer’:
[AndroidDriver] No app sent in, not parsing package/activity
[AndroidDriver] No app capability. Assuming it is already on the device
[AndroidDriver] Running fast reset (stop and clear)
[ADB] Getting connected devices…
[ADB] Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[ADB] Error: Cannot stop and clear app.via. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:334:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Cannot stop and clear app.via. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:334:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[AndroidDriver] Shutting down Android driver
[AndroidDriver] Called deleteSession but bootstrap wasn’t active
[Logcat] Stopping logcat capture
[ADB] Getting connected devices…
[ADB] Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
Error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:170:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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 next] (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[MJSONWP] Encountered internal error running command: Error: Cannot stop and clear app.via. Original error: Error while getting connected devices. Original error: Unexpected output while trying to get devices. output was:
at Object.wrappedLogger.errorAndThrow (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13)
at ADB.callee$0$0$ (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:334:9)
at tryCatch (C:\Users\rkherali\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\rkherali\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\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\rkherali\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 128562 ms - 298