{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/php-webdriver/issues/441","repository_url":"https://api.github.com/repos/facebook/php-webdriver","labels_url":"https://api.github.com/repos/facebook/php-webdriver/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/facebook/php-webdriver/issues/441/comments","events_url":"https://api.github.com/repos/facebook/php-webdriver/issues/441/events","html_url":"https://github.com/facebook/php-webdriver/issues/441","id":225801844,"number":441,"title":"WebDriverCurlException for webdriver with FF","user":{"login":"JeroenSteen","id":4057812,"avatar_url":"https://avatars2.githubusercontent.com/u/4057812?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenSteen","html_url":"https://github.com/JeroenSteen","followers_url":"https://api.github.com/users/JeroenSteen/followers","following_url":"https://api.github.com/users/JeroenSteen/following{/other_user}","gists_url":"https://api.github.com/users/JeroenSteen/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenSteen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenSteen/subscriptions","organizations_url":"https://api.github.com/users/JeroenSteen/orgs","repos_url":"https://api.github.com/users/JeroenSteen/repos","events_url":"https://api.github.com/users/JeroenSteen/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenSteen/received_events","type":"User","site_admin":false},"labels":[{"id":511232883,"url":"https://api.github.com/repos/facebook/php-webdriver/labels/needs%20more%20info","name":"needs more info","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-02T19:50:24Z","updated_at":"2017-05-03T14:35:24Z","closed_at":null,"body":"### Trying to achieve (Expected behavior)\r\nI want to use the newest Selenium with facebook/php-webdriver.\r\n\r\n### WebDriverCurlException (Actual behavior)\r\nBut I get this error in the browser targetting my PHP file:\r\n`Uncaught exception 'Facebook\\WebDriver\\Exception\\WebDriverCurlException' with message 'Curl error thrown for http POST to /session`. How can I fix this behavior?\r\n\r\nI runned Selenium with the Geckodriver 16.1 provided, with these command:\r\n\r\n    java -Dwebdriver.gecko.driver=\"/opt/bin/geckodriver\" -jar  selenium-server-standalone-3.4.0.jar\r\n\r\nI also installed Xvfb. This is my PHP code:\r\n\r\n```php\r\nnamespace Facebook\\WebDriver;\r\n\r\ninclude(\"vendor/autoload.php\");\r\n\r\nuse Facebook\\WebDriver\\Remote\\DesiredCapabilities;\r\nuse Facebook\\WebDriver\\Remote\\RemoteWebDriver;\r\n\r\n$host = \"http://localhost:4444/wd/hub\";\r\n$profile = new Firefox\\FirefoxProfile();\r\n$capabilities = DesiredCapabilities::firefox();\r\n$capabilities->setCapability(Firefox\\FirefoxDriver::PROFILE, $profile);\r\n$capabilities->setCapability('marionette', true);\r\n$driver = RemoteWebDriver::create($host, $capabilities);\r\n\r\n$driver->get(\"http://www.google.nl\");\r\n$driver->manage()->timeouts()->implicitlyWait = 10;\r\n```\r\n\r\n### Details\r\n\r\n* Php-webdriver version: ^1.1\r\n* PHP version: PHP 5.6.30\r\n* Selenium server version: 3.4\r\n* Operating system: CentOS 7\r\n* Browser used + version: Firefox 52.1\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/php-webdriver/issues/comments/298929544","html_url":"https://github.com/facebook/php-webdriver/issues/441#issuecomment-298929544","issue_url":"https://api.github.com/repos/facebook/php-webdriver/issues/441","id":298929544,"user":{"login":"JeroenSteen","id":4057812,"avatar_url":"https://avatars2.githubusercontent.com/u/4057812?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenSteen","html_url":"https://github.com/JeroenSteen","followers_url":"https://api.github.com/users/JeroenSteen/followers","following_url":"https://api.github.com/users/JeroenSteen/following{/other_user}","gists_url":"https://api.github.com/users/JeroenSteen/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenSteen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenSteen/subscriptions","organizations_url":"https://api.github.com/users/JeroenSteen/orgs","repos_url":"https://api.github.com/users/JeroenSteen/repos","events_url":"https://api.github.com/users/JeroenSteen/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenSteen/received_events","type":"User","site_admin":false},"created_at":"2017-05-03T14:35:24Z","updated_at":"2017-05-03T14:35:24Z","body":"I also see `GDK_BACKEND does not match available displays` in the terminal (but I have Xvfb), this is the output in the terminal:\r\n\r\n```\r\n13:56:07.070 INFO - Selenium build info: version: '3.4.0', revision: 'unknown'\r\n13:56:07.071 INFO - Launching a standalone Selenium Server\r\n2017-05-03 13:56:07.090:INFO::main: Logging initialized @327ms to org.seleniumhq.jetty9.util.log.StdErrLog\r\n13:56:07.157 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:\r\n registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX\r\n13:56:07.158 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:\r\n registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX\r\n13:56:07.158 INFO - Driver class not found: com.opera.core.systems.OperaDriver\r\n13:56:07.158 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:\r\nUnable to create new instances on this machine.\r\n13:56:07.158 INFO - Driver class not found: com.opera.core.systems.OperaDriver\r\n13:56:07.158 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered\r\n13:56:07.159 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:\r\n registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX\r\n2017-05-03 13:56:07.213:INFO:osjs.Server:main: jetty-9.4.3.v20170317\r\n2017-05-03 13:56:07.262:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@475530b9{/,null,AVAILABLE}\r\n2017-05-03 13:56:07.283:INFO:osjs.AbstractConnector:main: Started ServerConnector@148eb56c{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}\r\n2017-05-03 13:56:07.284:INFO:osjs.Server:main: Started @521ms\r\n13:56:07.284 INFO - Selenium Server is up and running\r\n13:56:10.346 INFO - SessionCleaner initialized with insideBrowserTimeout 0 and clientGoneTimeout 1800000 polling every 180000\r\n13:56:10.377 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, platform=ANY, firefox_profile=UEsDBBQAAAAAAAV/o0oAAAAAAAAAAAAAAAAHAAAAdXNlci5qc1BLAQIUAxQAAAAAAAV/o0oAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAC2gQAAAAB1c2VyLmpzUEsFBgAAAAABAAEANQAAACUAAAAAAA==}]])\r\n13:56:10.402 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, platform=ANY, firefox_profile=UEsDBBQAAAAAAAV/o0oAAAAAAAAAAAAAAAAHAAAAdXNlci5qc1BLAQIUAxQAAAAAAAV/o0oAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAC2gQAAAAB1c2VyLmpzUEsFBgAAAAABAAEANQAAACUAAAAAAA==}]\r\n1493819770784   geckodriver     INFO    Listening on 127.0.0.1:27627\r\n1493819771046   geckodriver::marionette INFO    Starting browser /usr/bin/firefox with args [\"-marionette\"]\r\nError: GDK_BACKEND does not match available displays\r\n13:57:11.793 WARN - Exception thrown\r\njava.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException\r\nBuild info: version: '3.4.0', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'h2446783.stratoserver.net', ip: '85.214.60.202', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-042stab120.20', java.version: '1.8.0_77'\r\nDriver info: driver.version: unknown\r\n        at java.util.concurrent.FutureTask.report(FutureTask.java:122)\r\n        at java.util.concurrent.FutureTask.get(FutureTask.java:192)\r\n        at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:183)\r\n        at org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSession.java:119)\r\n        at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:95)\r\n        at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:131)\r\n        at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:59)\r\n        at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:36)\r\n        at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:111)\r\n        at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:190)\r\n        at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:222)\r\n        at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:184)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)\r\n        at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:150)\r\n        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\n        at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841)\r\n        at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:543)\r\n        at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)\r\n        at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1228)\r\n        at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)\r\n        at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:481)\r\n        at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)\r\n        at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1130)\r\n        at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n        at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n        at org.seleniumhq.jetty9.server.Server.handle(Server.java:564)\r\n        at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:320)\r\n        at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251)\r\n        at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)\r\n        at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:112)\r\n        at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)\r\n        at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)\r\n        at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException\r\nBuild info: version: '3.4.0', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'h2446783.stratoserver.net', ip: '85.214.60.202', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-042stab120.20', java.version: '1.8.0_77'\r\nDriver info: driver.version: unknown\r\n        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:89)\r\n        at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:63)\r\n        at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)\r\n        at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)\r\n        at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:209)\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n        at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        ... 1 more\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:81)\r\n        ... 9 more\r\nCaused by: org.openqa.selenium.WebDriverException: connection refused\r\nBuild info: version: '3.4.0', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'h2446783.stratoserver.net', ip: '85.214.60.202', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-042stab120.20', java.version: '1.8.0_77'\r\nDriver info: driver.version: FirefoxDriver\r\nremote stacktrace: stack backtrace:\r\n   0:           0x4fa94d - backtrace::backtrace::trace::h45ace4059cd74233\r\n   1:           0x4fae32 - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc\r\n   2:           0x4349d9 - webdriver::error::WebDriverError::new::h449345a591a119fd\r\n   3:           0x43f6b0 - geckodriver::marionette::MarionetteHandler::create_connection::h53f581202e4008b4\r\n   4:           0x442839 - <geckodriver::marionette::MarionetteHandler as webdriver::server::WebDriverHandler<geckodriver::marionette::GeckoExtensionRoute>>::handle_command::hd89c5efbeb4c7cd5\r\n   5:           0x434e94 - webdriver::server::start::{{closure}}::h5e71183f67357de6\r\n   6:           0x408627 - std::panicking::try::do_call::h8c30e6af4c7f85af\r\n   7:           0x5b77fa - panic_unwind::__rust_maybe_catch_panic\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libpanic_unwind/lib.rs:98\r\n   8:           0x416e57 - <F as alloc::boxed::FnBox<A>>::call_box::h3f273b2445d78deb\r\n   9:           0x5b0014 - alloc::boxed::{{impl}}::call_once<(),()>\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/liballoc/boxed.rs:624\r\n                         - std::sys_common::thread::start_thread\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys_common/thread.rs:21\r\n                         - std::sys::imp::thread::{{impl}}::new::thread_start\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys/unix/thread.rs:84\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n        at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)\r\n        at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)\r\n        at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)\r\n        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\r\n        at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)\r\n        at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)\r\n        at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)\r\n        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)\r\n        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n        at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)\r\n        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n        at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)\r\n        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)\r\n        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)\r\n        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)\r\n        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)\r\n        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)\r\n        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)\r\n        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)\r\n        at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:137)\r\n        ... 14 more\r\n13:57:11.864 WARN - Exception: connection refused\r\nBuild info: version: '3.4.0', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'h2446783.stratoserver.net', ip: '85.214.60.202', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-042stab120.20', java.version: '1.8.0_77'\r\nDriver info: driver.version: FirefoxDriver\r\nremote stacktrace: stack backtrace:\r\n   0:           0x4fa94d - backtrace::backtrace::trace::h45ace4059cd74233\r\n   1:           0x4fae32 - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc\r\n   2:           0x4349d9 - webdriver::error::WebDriverError::new::h449345a591a119fd\r\n   3:           0x43f6b0 - geckodriver::marionette::MarionetteHandler::create_connection::h53f581202e4008b4\r\n   4:           0x442839 - <geckodriver::marionette::MarionetteHandler as webdriver::server::WebDriverHandler<geckodriver::marionette::GeckoExtensionRoute>>::handle_command::hd89c5efbeb4c7cd5\r\n   5:           0x434e94 - webdriver::server::start::{{closure}}::h5e71183f67357de6\r\n   6:           0x408627 - std::panicking::try::do_call::h8c30e6af4c7f85af\r\n   7:           0x5b77fa - panic_unwind::__rust_maybe_catch_panic\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libpanic_unwind/lib.rs:98\r\n   8:           0x416e57 - <F as alloc::boxed::FnBox<A>>::call_box::h3f273b2445d78deb\r\n   9:           0x5b0014 - alloc::boxed::{{impl}}::call_once<(),()>\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/liballoc/boxed.rs:624\r\n                         - std::sys_common::thread::start_thread\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys_common/thread.rs:21\r\n                         - std::sys::imp::thread::{{impl}}::new::thread_start\r\n                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-musl-linux/build/src/libstd/sys/unix/thread.rs:84\r\n```"}}
{"actor":{"display_login":"JeroenSteen"}}