An error occurred while supplying user defined javascript in appium

Hi,
From the past few days I am getting this error " an error occurred while supplying user defined javascript in appium" whenever I am running my scripts on iOS. I tried upgrading my Appium but there is hardly any luck. Appium fails to enter any text.