Getting error while executing the swipe in 1.6.3 after that commands are passing very slow

Hi Team,

IOS-10
appium-1.6.3
using real device.

I am using driver.swipe(x,y,x,y,d);

while executing this step, it is taking 4 minutes time after 4 minutes, in appium we are seeing error message but after that swipe is executing. and the next commands are executing very slow until App gets uninstall.
Please reply me ASAP. I am not able to see know what is error behind this.
It is happening on IOS only

Logs:
2017-01-16 13:24:12:744 - info: [HTTP] --> POST /wd/hub/session/8c66a42f-5b4f-4fc9-a2f9-a92ac96a5f0d/touch/perform {“actions”:[{“action”:“press”,“options”:{“x”:91,“y”:62}},{“action”:“wait”,“options”:{“ms”:1000}},{“action”:“moveTo”,“options”:{“x”:127,“y”:36}},{“action”:“release”,“options”:{}}]}
2017-01-16 13:24:12:745 - info: [debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“press”,“options”:{“x”:91,“y”:62}},{“action”:“wait”,“options”:{“ms”:1000}},{“action”:“moveTo”,“options”:{“x”:127,“y”:36}},{“action”:“release”,“options”:{}}],“8c66a42f-5b4f-4fc9-a2f9-a92ac96a5f0d”]
2017-01-16 13:24:12:745 - info: [debug] [XCUITest] Executing command ‘performTouch’
2017-01-16 13:24:12:747 - info: [debug] [XCUITest] Received the following touch action: press-wait-moveTo-release
2017-01-16 13:24:12:748 - info: [debug] [JSONWP Proxy] Proxying [POST /uiaTarget/0/dragfromtoforduration] to [POST http://localhost:59367/session/D829327A-9017-44A9-9372-26A23CBEDBB0/uiaTarget/0/dragfromtoforduration] with body: {“fromX”:91,“fromY”:62,“toX”:218,“toY”:98,“duration”:1}
2017-01-16 13:28:12:751 - info: [debug] [iProxy] recv failed: Resource temporarily unavailable
2017-01-16 13:28:12:761 - error: [MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: ESOCKETTIMEDOUT
at JWProxy.proxy$ (…/…/…/lib/jsonwp-proxy/proxy.js:126:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:108:47)
at /usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:119:28
at flush (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)

Which client do you use?

Hi,

I am using Java and client version is Java-client 4.1.2

You could try to use TouchActions instead of driver.swipe
This method is also going to be deprecated with the newer versions of java-client

Hey Thanks,

I used TouchActions as well but same issue it is taking 4 minutes and after that remaining commands are executing very slow.

Hi, I am having similar issue, did you find any solution for this ?

For iOS, from appium 1.6.4 onward please use ‘mobile: swipe’ function through javascript.

For more details please browse:- https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/ios-xctest-mobile-gestures.md