Getting an error while executing appium mobile app automation

I am getting this error stating original error [object][object] while executing mobile automation. This is happening since I updated appium version. Before this it is executing without errors. Coding is done in node.js. List of software versions which I am currently using
Java version - 10.0.1

Node version - 10.5.0

Npm version - 6.1.0

Xcode version - 9.4.1

Appium version - 1.12.1

Please can anyone tell how to solve this issue. And, on e most strange thing is I am getting this at different parts of automation while executing it.