An unknown server-side error occurred while processing the command while swipe

I get the following Exception using appium An unknown server-side error occurred while processing the command. when i run this code
driver.Swipe(loc1.X, loc1.Y, loc1.X - 110, loc1.Y, 2000);

I use this line of code to swipe specific element to left, after done swipe to left i got this exception how i can solve it ?

please post a complete log file. I guess that loc1.X-110 exceeds your application’s width in this case.

please log loc1.x

My log file is

info: [debug] Pushing command to appium work queue: [“swipe”,{“startX”:134,“startY”:646,“endX”:24,“endY”:646,“steps”:56}]

info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“swipe”,“params”:{“startX”:134,“startY”:646,“endX”:24,“endY”:646,“steps”:56}}

info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION

info: [debug] [BOOTSTRAP] [debug] Got command action: swipe

info: [debug] [BOOTSTRAP] [debug] Display bounds: [0,0][540,960]

info: [debug] [BOOTSTRAP] [debug] Display bounds: [0,0][540,960]

info: [debug] [BOOTSTRAP] [debug] Swiping from [x=134.0, y=646.0] to [x=24.0, y=646.0] with steps: 56

info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“The swipe did not complete successfully”,“status”:13}

info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command.”,“origValue”:“The swipe did not complete successfully”},“sessionId”:“3f8c0dc1-0b7f-4940-bd7d-8230c678008f”}`

are you running on ios (swipe is broken on ios 8 Simulator afaik) or android?

I’m running on android 4.2

hi, I met the same issue on Android 4.4.2 and didn’t find any resolution, have you resolve it?

Any update on this issue? I met the same issue on Android 4.4.2 too. I can swipe from right to left but it can NOT work from bottom to top. This is strange. My appium version is the newest: 1.5.0.

key error log is as below:
[HTTP] --> POST /wd/hub/session/2116f72a-70b1-4db2-8e5c-11d80fbf0b2e/touch/perform
[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“press”,“options”:{“y”:500,“x”:300}},{“action”:“wait”,“options”:{“ms”:1000}},{“action”:“moveTo”,“options”:{“y”:300,“x”:300}},{“action”:…
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“swipe”,“params”:{“startX”:300,“startY”:500,“endX”:300,“endY”:300,“steps”:28}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“swipe”,“params”:{“startX”:300,“startY”:500,“endX”:300,“endY”:300,“steps”:28}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: swipe
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][720,1184]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][720,1184]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Swiping from [x=300.0, y=500.0] to [x=300.0, y=300.0] with steps: 28
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“value”:“The swipe did not complete successfully”,“status”:13}
[debug] [AndroidBootstrap] Received command result from bootstrap
[HTTP] <-- POST /wd/hub/session/2116f72a-70b1-4db2-8e5c-11d80fbf0b2e/touch/perform 500 79 ms - 154
2016-03-28 13:55:03,282 - secondOpinionPage.secondOpinionPage - INFO - Message: An unknown server-side error occurred while processing the command.

Update: @Ahmed_Zainy @yunmenzhe
After research adb command, I found a temporary way to solve this: if you want swipe, you could call a system command: adb shell input swipe start_x start_y end_x end_y. E.g.: adb shell input swipe 300 500 300 100, it means: swipe from 300, 500 to 300, 100 which also means swipe from bottom to top.

My issue occurred when trying to swipe from right to left and I resolved it by waiting 0.5 second after launch the app.

OK! That’s good. Congratulation!

I will try your resolution later.