Unable to extract the text value from an textView element

I am trying to retrieve the text of error message to assert but I am not able to retrieve the content. I am writing tests in javascript and tried to retrieve the element using errorField =driver.waitForElementByXPath(’’)
errorText = errorField.getValue(); and tried errorField.getText(). Both displays the error message.Please find the below error response
status: 7, , NoSuchElement - An element could not be located on the page using the given search parameters.

I use appium to inspect the UI element on android

Please let me know if there is any other way to fetch the text content from a TextView