{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/875","repository_url":"https://api.github.com/repos/mozilla/geckodriver","labels_url":"https://api.github.com/repos/mozilla/geckodriver/issues/875/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/geckodriver/issues/875/comments","events_url":"https://api.github.com/repos/mozilla/geckodriver/issues/875/events","html_url":"https://github.com/mozilla/geckodriver/issues/875","id":250536225,"number":875,"title":"GeckoDriver (v0.18.0) shows error org.openqa.selenium.remote.ErrorCodes toStatus  and WebDriverException on quit() method.","user":{"login":"Debanjan-B","id":26503213,"avatar_url":"https://avatars3.githubusercontent.com/u/26503213?v=4","gravatar_id":"","url":"https://api.github.com/users/Debanjan-B","html_url":"https://github.com/Debanjan-B","followers_url":"https://api.github.com/users/Debanjan-B/followers","following_url":"https://api.github.com/users/Debanjan-B/following{/other_user}","gists_url":"https://api.github.com/users/Debanjan-B/gists{/gist_id}","starred_url":"https://api.github.com/users/Debanjan-B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Debanjan-B/subscriptions","organizations_url":"https://api.github.com/users/Debanjan-B/orgs","repos_url":"https://api.github.com/users/Debanjan-B/repos","events_url":"https://api.github.com/users/Debanjan-B/events{/privacy}","received_events_url":"https://api.github.com/users/Debanjan-B/received_events","type":"User","site_admin":false},"labels":[{"id":490262122,"url":"https://api.github.com/repos/mozilla/geckodriver/labels/waiting%20for%20reporter%20feedback","name":"waiting for reporter feedback","color":"dedede","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-16T07:32:40Z","updated_at":"2017-08-22T09:53:17Z","closed_at":null,"body":"## System\r\n* GeckoDriver Version: 0.18.0\r\n* Platform: Windows8 Pro, 64 bit \r\n* Firefox: 53.0 (64-bit)\r\n* Selenium: 3.5.0 (Java Binding)\r\n\r\n\r\n## Testcase\r\nCalling `quit()` method on `WebDriver` instance throws error **org.openqa.selenium.remote.ErrorCodes toStatus** with INFO logs as **HTTP Status: '404' -> incorrect JSON status mapping for 'unknown error' (500 expected)** and then **org.openqa.selenium.WebDriverException**.\r\n\r\nCode:\r\n\r\n\timport org.openqa.selenium.WebDriver;\r\n\timport org.openqa.selenium.firefox.FirefoxDriver;\r\n\r\n\tpublic class A_Firefox \r\n\t{\r\n\t\tpublic static void main(String[] args) \r\n\t\t{\r\n\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Utility\\\\BrowserDrivers\\\\geckodriver.exe\");\r\n\t\t\t\tWebDriver driver =  new FirefoxDriver();\r\n\t\t\t\tdriver.get(\"https://stackoverflow.com\");\r\n\t\t\t\tSystem.out.println(\"Application opened\");\r\n\t\t\t\tSystem.out.println(\"Page Title is : \"+driver.getTitle());\r\n\t\t\t\tdriver.quit();\r\n\t\t}\r\n\r\n\t}\r\n\r\n\r\n\r\n## Stacktrace\r\n\r\n\t1502867097285\tgeckodriver\tINFO\tgeckodriver 0.18.0\r\n\t1502867097294\tgeckodriver\tINFO\tListening on 127.0.0.1:43160\r\n\t1502867098450\tgeckodriver::marionette\tINFO\tStarting browser C:\\Program Files\\Mozilla Firefox\\firefox.exe with args [\"-marionette\"]\r\n\t1502867104393\tMarionette\tINFO\tListening on port 3004\r\n\t[GPU 5860] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346\r\n\tAug 16, 2017 12:35:05 PM org.openqa.selenium.remote.ProtocolHandshake createSession\r\n\tINFO: Detected dialect: W3C\r\n\tApplication opened\r\n\tPage Title is : Stack Overflow - Where Developers Learn, Share, & Build Careers\r\n\tAug 16, 2017 12:35:12 PM org.openqa.selenium.remote.ErrorCodes toStatus\r\n\tINFO: HTTP Status: '404' -> incorrect JSON status mapping for 'unknown error' (500 expected)\r\n\tException in thread \"main\" org.openqa.selenium.WebDriverException: quit\r\n\tBuild info: version: '3.5.0', revision: '8def36e068', time: '2017-08-10T23:00:22.093Z'\r\n\tSystem info: host: 'ATECHM-03', ip: '192.168.1.48', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.8.0_77'\r\n\tDriver info: org.openqa.selenium.firefox.FirefoxDriver\r\n\tCapabilities [{moz:profile=C:\\Users\\ATECHM~1\\AppData\\Local\\Temp\\rust_mozprofile.czAalvSGGlRP, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=53.0, platformVersion=6.2, moz:processID=4824.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]\r\n\tSession ID: c494a708-18f0-4660-9768-969df23e1953\r\n\t\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\t\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\t\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\t\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n\t\tat org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)\r\n\t\tat org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)\r\n\t\tat org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)\r\n\t\tat org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)\r\n\t\tat org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)\r\n\t\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:641)\r\n\t\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:698)\r\n\t\tat org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:537)\r\n\tat demo.A_Firefox.main(A_Firefox.java:15)\r\n\r\n\r\n## Trace-level log\r\n\r\n<!--\r\nSee https://github.com/mozilla/geckodriver#firefox-capabilities\r\nfor making geckodriver produce a trace-level log.\r\n\r\nThe short version is to either pass the -vv flag\r\nor {\"moz:firefoxOptions\": {\"log\": {\"level\": \"trace\"}}} as a capability.\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/geckodriver/issues/comments/323978122","html_url":"https://github.com/mozilla/geckodriver/issues/875#issuecomment-323978122","issue_url":"https://api.github.com/repos/mozilla/geckodriver/issues/875","id":323978122,"user":{"login":"Debanjan-B","id":26503213,"avatar_url":"https://avatars3.githubusercontent.com/u/26503213?v=4","gravatar_id":"","url":"https://api.github.com/users/Debanjan-B","html_url":"https://github.com/Debanjan-B","followers_url":"https://api.github.com/users/Debanjan-B/followers","following_url":"https://api.github.com/users/Debanjan-B/following{/other_user}","gists_url":"https://api.github.com/users/Debanjan-B/gists{/gist_id}","starred_url":"https://api.github.com/users/Debanjan-B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Debanjan-B/subscriptions","organizations_url":"https://api.github.com/users/Debanjan-B/orgs","repos_url":"https://api.github.com/users/Debanjan-B/repos","events_url":"https://api.github.com/users/Debanjan-B/events{/privacy}","received_events_url":"https://api.github.com/users/Debanjan-B/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T09:53:16Z","updated_at":"2017-08-22T09:53:16Z","body":"@andreastt As you mentioned I have downgraded my Mozilla Firefox back to 53.0 stable GA release. Added configuration to the `WebDriver` for `trace` level logs as follows:\r\n\r\n\timport org.openqa.selenium.WebDriver;\r\n\timport org.openqa.selenium.firefox.FirefoxDriver;\r\n\timport org.openqa.selenium.firefox.FirefoxOptions;\r\n\timport org.openqa.selenium.remote.DesiredCapabilities;\r\n\r\n\tpublic class A_Firefox \r\n\t{\r\n\t\tpublic static void main(String[] args) \r\n\t\t{\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Utility\\\\BrowserDrivers\\\\geckodriver.exe\");\r\n\t\t\tFirefoxOptions options = new FirefoxOptions();\r\n\t\t\toptions.addPreference(\"--log\", \"trace\");\r\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\r\n\t\t\tcapabilities.setCapability(\"moz:firefoxOptions\", options);\r\n\t\t\tWebDriver driver =  new FirefoxDriver(capabilities);\r\n\t\t\tdriver.get(\"https://stackoverflow.com\");\r\n\t\t\tSystem.out.println(\"Application opened\");\r\n\t\t\tSystem.out.println(\"Page Title is : \"+driver.getTitle());\r\n\t\t\tdriver.quit();\r\n\t\t}\r\n\t}\r\n\r\n\r\nHere is the same output on my console with the error **`INFO: HTTP Status: '404' -> incorrect JSON status mapping for 'unknown error' (500 expected)`**\r\n\r\nHere is the full stack trace:\r\n\r\n\t1503394942465\tgeckodriver\tINFO\tgeckodriver 0.18.0\r\n\t1503394942485\tgeckodriver\tINFO\tListening on 127.0.0.1:27069\r\n\tlog4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).\r\n\tlog4j:WARN Please initialize the log4j system properly.\r\n\t1503394943242\tgeckodriver::marionette\tINFO\tStarting browser C:\\Program Files\\Mozilla Firefox\\firefox.exe with args [\"-marionette\"]\r\n\t1503394974975\tMarionette\tINFO\tListening on port 1558\r\n\t[GPU 4240] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346\r\n\t1503394975891\tMarionette\tWARN\tTLS certificate errors will be ignored for this session\r\n\tAug 22, 2017 3:12:56 PM org.openqa.selenium.remote.ProtocolHandshake createSession\r\n\tINFO: Detected dialect: W3C\r\n\tApplication opened\r\n\tPage Title is : Stack Overflow - Where Developers Learn, Share, & Build Careers\r\n\tAug 22, 2017 3:13:02 PM org.openqa.selenium.remote.ErrorCodes toStatus\r\n\tINFO: HTTP Status: '404' -> incorrect JSON status mapping for 'unknown error' (500 expected)\r\n\tException in thread \"main\" org.openqa.selenium.WebDriverException: quit\r\n\tBuild info: version: '3.5.0', revision: '8def36e068', time: '2017-08-10T23:00:22.093Z'\r\n\tSystem info: host: 'ATECHM-03', ip: '192.168.1.58', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.8.0_144'\r\n\tDriver info: org.openqa.selenium.firefox.FirefoxDriver\r\n\tCapabilities [{moz:profile=C:\\Users\\ATECHM~1\\AppData\\Local\\Temp\\rust_mozprofile.maJhixhtt8x1, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=true, browserVersion=53.0, platformVersion=6.2, moz:processID=3368.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]\r\n\tSession ID: e9269e01-86c2-47e3-9f4b-1a933a77e98e\r\n\t\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\t\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)\r\n\t\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)\r\n\t\tat java.lang.reflect.Constructor.newInstance(Unknown Source)\r\n\t\tat org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)\r\n\t\tat org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)\r\n\t\tat org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)\r\n\t\tat org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)\r\n\t\tat org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)\r\n\t\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:641)\r\n\t\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:698)\r\n\t\tat org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:537)\r\n\t\tat demo.A_Firefox.main(A_Firefox.java:21)"}}
{"actor":{"display_login":"Debanjan-B"}}