Scrolling in appium

Hi,

I want to scroll once the home page appears, i am using this swipe method

driver.swipe(300,500,300,200,1000);

But every time I am getting this error

info: [debug] [BOOTSTRAP] [debug] Swiping from [x=300.0, y=500.0] to [x=300.0, y=200.0] with steps: 28
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”},

Platform- Android
Real Device
Please let me know how I can correct this.

Thanks.