{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/10730","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/10730/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/10730/comments","events_url":"https://api.github.com/repos/appium/appium/issues/10730/events","html_url":"https://github.com/appium/appium/issues/10730","id":325134249,"number":10730,"title":"Switching back to webview - An unknown server-side error occurred - Original error: Unexpected token c in JSON at position 247","user":{"login":"amitrparmar","id":22440665,"avatar_url":"https://avatars3.githubusercontent.com/u/22440665?v=4","gravatar_id":"","url":"https://api.github.com/users/amitrparmar","html_url":"https://github.com/amitrparmar","followers_url":"https://api.github.com/users/amitrparmar/followers","following_url":"https://api.github.com/users/amitrparmar/following{/other_user}","gists_url":"https://api.github.com/users/amitrparmar/gists{/gist_id}","starred_url":"https://api.github.com/users/amitrparmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitrparmar/subscriptions","organizations_url":"https://api.github.com/users/amitrparmar/orgs","repos_url":"https://api.github.com/users/amitrparmar/repos","events_url":"https://api.github.com/users/amitrparmar/events{/privacy}","received_events_url":"https://api.github.com/users/amitrparmar/received_events","type":"User","site_admin":false},"labels":[{"id":36581329,"url":"https://api.github.com/repos/appium/appium/labels/Mobile%20Safari","name":"Mobile Safari","color":"0052cc","default":false},{"id":474876872,"url":"https://api.github.com/repos/appium/appium/labels/NeedsInfo","name":"NeedsInfo","color":"fbca04","default":false},{"id":219921934,"url":"https://api.github.com/repos/appium/appium/labels/ThirdParty","name":"ThirdParty","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-22T04:08:36Z","updated_at":"2018-05-22T10:43:30Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nI am getting an issue on iOS device when I switched to NATIVE view and try to back into Webview.\r\n\r\n## Environment\r\n\r\n* Appium server version: 1.8.0\r\n* MAC OS (Where appium runs): High Sierra 10.13.4\r\n* Desktop OS version: Windows 10\r\n* Mobile platform version: 10.3.3\r\n* Real device : iPAD 4\r\n\r\n## Details\r\n\r\nAppiumDriver().getContextHandles();\r\n\r\n\r\n## APPIUM LOGs:\r\n\r\n[HTTP] <-- GET /wd/hub/session/2b68dc2a-59d8-4925-bdd7-89d0ff51e90d/screenshot 200 2068 ms - 2024946\r\n[HTTP] \r\n[HTTP] --> GET /wd/hub/session/2b68dc2a-59d8-4925-bdd7-89d0ff51e90d/context\r\n[HTTP] {}\r\n[debug] [MJSONWP] Calling AppiumDriver.getCurrentContext() with args: [\"2b68dc2a-59d8-4925-bdd7-89d0ff51e90d\"]\r\n[debug] [XCUITest] Executing command 'getCurrentContext'\r\n[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: \"NATIVE_APP\"\r\n[HTTP] <-- GET /wd/hub/session/2b68dc2a-59d8-4925-bdd7-89d0ff51e90d/context 200 2 ms - 84\r\n[HTTP] \r\n[HTTP] --> GET /wd/hub/session/2b68dc2a-59d8-4925-bdd7-89d0ff51e90d/contexts\r\n[HTTP] {}\r\n[debug] [MJSONWP] Calling AppiumDriver.getContexts() with args: [\"2b68dc2a-59d8-4925-bdd7-89d0ff51e90d\"]\r\n[debug] [XCUITest] Executing command 'getContexts'\r\n[debug] [iOS] Getting list of available contexts\r\n[debug] [iOS] Retrieving contexts and views\r\n[debug] [iOS] Selecting by url: false \r\n[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 27753\r\n[debug] [RemoteDebugger] Sending request to: http://localhost:27753/json\r\n[MJSONWP] Encountered internal error running command: SyntaxError: Unexpected token c in JSON at position 247\r\n[MJSONWP]     at JSON.parse (<anonymous>)\r\n[MJSONWP]     at WebKitRemoteDebugger.getJsonFromUrl$ (/usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/lib/webkit-remote-debugger.js:85:22)\r\n[MJSONWP]     at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)\r\n[MJSONWP]     at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)\r\n[MJSONWP]     at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)\r\n[MJSONWP]     at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)\r\n[MJSONWP]     at <anonymous>\r\n[HTTP] <-- GET /wd/hub/session/2b68dc2a-59d8-4925-bdd7-89d0ff51e90d/contexts 500 7 ms - 213\r\n\r\n\r\n## Java Client Error\r\norg.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unexpected token c in JSON at position 247 (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 16 milliseconds\r\nBuild info: version: 'unknown', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'COMPUTER000117', ip: '192.168.133.60', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_91'\r\nDriver info: io.appium.java_client.ios.IOSDriver\r\nCapabilities [{app=/Users/admin/Desktop/IPA/TouchClassic_5.0.1.app, networkConnectionEnabled=false, databaseEnabled=false, deviceName=ipad, fullReset=true, platform=MAC, showXcodeLog=true, newCommandTimeout=300, platformVersion=10.3.1, webStorageEnabled=false, locationContextEnabled=false, automationName=XCUITest, browserName=, takesScreenshot=true, javascriptEnabled=true, platformName=iOS, udid=d8a8f24c27769d00627929f291b15eb015e9e8c4, autoAcceptAlerts=true}]\r\nSession ID: 2b68dc2a-59d8-4925-bdd7-89d0ff51e90d\r\n\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n\tat org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)\r\n\tat org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)\r\n\tat io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)\r\n\tat io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:235)\r\n\tat io.appium.java_client.AppiumDriver.getContextHandles(AppiumDriver.java:562)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/390945947","html_url":"https://github.com/appium/appium/issues/10730#issuecomment-390945947","issue_url":"https://api.github.com/repos/appium/appium/issues/10730","id":390945947,"user":{"login":"amitrparmar","id":22440665,"avatar_url":"https://avatars3.githubusercontent.com/u/22440665?v=4","gravatar_id":"","url":"https://api.github.com/users/amitrparmar","html_url":"https://github.com/amitrparmar","followers_url":"https://api.github.com/users/amitrparmar/followers","following_url":"https://api.github.com/users/amitrparmar/following{/other_user}","gists_url":"https://api.github.com/users/amitrparmar/gists{/gist_id}","starred_url":"https://api.github.com/users/amitrparmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitrparmar/subscriptions","organizations_url":"https://api.github.com/users/amitrparmar/orgs","repos_url":"https://api.github.com/users/amitrparmar/repos","events_url":"https://api.github.com/users/amitrparmar/events{/privacy}","received_events_url":"https://api.github.com/users/amitrparmar/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T10:43:30Z","updated_at":"2018-05-22T10:43:30Z","author_association":"NONE","body":"Should I check anything from my side? \r\n\r\nSorry but I'm not having much idea about WDTY or IWDP. \r\nWhat are they? And how can I check the versions?\r\n"}}
{"actor":{"display_login":"amitrparmar"}}