Unable to tap on the field and getting error 'Keyboard is not present'

An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 “Keyboard is not present” UserInfo={NSLocalizedDescription=Keyboard is not present}

Build info: version: ‘3.14.0’, revision: ‘aacccce0’, time: ‘2018-08-02T20:19:58.91Z’

System info: host: ‘Ankit-Chourasia.local’, ip: ‘fe80:0:0:0:144c:e7b8:7459:6ad5%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0_171’

Driver info: io.appium.java_client.ios.IOSDriver

Capabilities {app: /Users/achourasia/Desktop/6…, autoAcceptAlerts: true, automationName: XCUITest, browserName: , databaseEnabled: false, deviceName: iPad Air 2, fullReset: true, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 80, platform: MAC, platformName: iOS, platformVersion: 12.1, takesScreenshot: true, udid: C02F60EE-BDF7-4EBF-8E8A-F20…, webStorageEnabled: false, xcodeOrgId: WN9RQRBK6L, xcodeSigningId: iPhone Developer}

Here appium server log,

[HTTP] --> POST /wd/hub/session/029c5e18-6dea-4905-a7f8-5a356f4570d0/element

[HTTP] {“using”:“xpath”,“value”:"//XCUIElementTypeStaticText[@name=“First Name”]"}

[W3C (029c5e18)] Calling AppiumDriver.findElement() with args: [“xpath”,"//XCUIElementTypeStaticText[@name=“First Name”]",“029c5e18-6dea-4905-a7f8-5a356f4570d0”]

[XCUITest] Executing command ‘findElement’

[BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id

[BaseDriver] Waiting up to 20000 ms for condition

[WD Proxy] Matched ‘/element’ to command name ‘findElement’

[WD Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/D4BED5C8-D254-46C9-88BC-74B7C9641035/element] with body: {“using”:“xpath”,“value”:"//XCUIElementTypeStaticText[@name=“First Name”]"}

[WD Proxy] Got response with status 200: {“value”:{“ELEMENT”:“E2020000-0000-0000-BC2F-000000000000”,“element-6066-11e4-a52e-4f735466cecf”:“E2020000-0000-0000-BC2F-000000000000”},“sessionId”:“D4BED5C8-D254-46C9-88BC-74B7C9641035”}

[W3C (029c5e18)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“E2020000-0000-0000-BC2F-000000000000”,“ELEMENT”:“E2020000-0000-0000-BC2F-000000000000”}

[HTTP] <-- POST /wd/hub/session/029c5e18-6dea-4905-a7f8-5a356f4570d0/element 200 23911 ms - 137

[HTTP]

[HTTP] --> POST /wd/hub/session/029c5e18-6dea-4905-a7f8-5a356f4570d0/element/E2020000-0000-0000-BC2F-000000000000/value

[HTTP] {“id”:“E2020000-0000-0000-BC2F-000000000000”,“text”:“automativest”,“value”:[“a”,“u”,“t”,“o”,“m”,“a”,“t”,“i”,“v”,“e”,“s”,“t”]}

[W3C (029c5e18)] Calling AppiumDriver.setValue() with args: [[“a”,“u”,“t”,“o”,“m”,“a”,“t”,“i”,“v”,“e”,“s”,“t”],“E2020000-0000-0000-BC2F-000000000000”,“029c5e18-6dea-4905-a7f8-5a356f4570d0”]

[XCUITest] Executing command ‘setValue’

[WD Proxy] Matched ‘/element/E2020000-0000-0000-BC2F-000000000000/value’ to command name ‘setValue’

[Protocol Converter] Added ‘text’ property “automativest” to ‘setValue’ request body

[WD Proxy] Proxying [POST /element/E2020000-0000-0000-BC2F-000000000000/value] to [POST http://localhost:8100/session/D4BED5C8-D254-46C9-88BC-74B7C9641035/element/E2020000-0000-0000-BC2F-000000000000/value] with body: {“value”:[“a”,“u”,“t”,“o”,“m”,“a”,“t”,“i”,“v”,“e”,“s”,“t”],“text”:“automativest”}

[WD Proxy] Got an unexpected response with status 500: {“value”:{“error”:“unknown error”,“message”:“Error Domain=com.facebook.WebDriverAgent Code=1 “Keyboard is not present” UserInfo={NSLocalizedDescription=Keyboard is not present}”,“traceback”:""},“sessionId”:“D4BED5C8-D254-46C9-88BC-74B7C9641035”}

[W3C] Matched W3C error code ‘unknown error’ to UnknownError

[WD Proxy] Matched ‘/element/E2020000-0000-0000-BC2F-000000000000/attribute/type’ to command name ‘getAttribute’

[WD Proxy] Proxying [GET /element/E2020000-0000-0000-BC2F-000000000000/attribute/type] to [GET http://localhost:8100/session/D4BED5C8-D254-46C9-88BC-74B7C9641035/element/E2020000-0000-0000-BC2F-000000000000/attribute/type] with no body

[WD Proxy] Got response with status 200: {

[WD Proxy] “value” : “XCUIElementTypeStaticText”,

[WD Proxy] “sessionId” : “D4BED5C8-D254-46C9-88BC-74B7C9641035”

[WD Proxy] }

[W3C (029c5e18)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 “Keyboard is not present” UserInfo={NSLocalizedDescription=Keyboard is not present}

[W3C (029c5e18)] at errorFromW3CJsonCode (/Applications/Appium 2.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)

[W3C (029c5e18)] at ProxyRequestError.errorFromW3CJsonCode [as getActualError] (/Applications/Appium 2.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)

[W3C (029c5e18)] at JWProxy.getActualError [as command] (/Applications/Appium 2.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:259:19)

[HTTP] <-- POST /wd/hub/session/029c5e18-6dea-4905-a7f8-5a356f4570d0/element/E2020000-0000-0000-BC2F-000000000000/value 500 5940 ms - 1105

[HTTP]