{"action":"created","issue":{"url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/issues/27","labels_url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/issues/27/comments","events_url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/issues/27/events","html_url":"https://github.com/groupon-testium/webdriver-http-sync/pull/27","id":62718401,"number":27,"title":"better error reporting for timeouts; fix internal timeout api usage","user":{"login":"EndangeredMassa","id":41545,"avatar_url":"https://avatars.githubusercontent.com/u/41545?v=3","gravatar_id":"","url":"https://api.github.com/users/EndangeredMassa","html_url":"https://github.com/EndangeredMassa","followers_url":"https://api.github.com/users/EndangeredMassa/followers","following_url":"https://api.github.com/users/EndangeredMassa/following{/other_user}","gists_url":"https://api.github.com/users/EndangeredMassa/gists{/gist_id}","starred_url":"https://api.github.com/users/EndangeredMassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EndangeredMassa/subscriptions","organizations_url":"https://api.github.com/users/EndangeredMassa/orgs","repos_url":"https://api.github.com/users/EndangeredMassa/repos","events_url":"https://api.github.com/users/EndangeredMassa/events{/privacy}","received_events_url":"https://api.github.com/users/EndangeredMassa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-18T15:11:33Z","updated_at":"2015-03-18T22:38:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/pulls/27","html_url":"https://github.com/groupon-testium/webdriver-http-sync/pull/27","diff_url":"https://github.com/groupon-testium/webdriver-http-sync/pull/27.diff","patch_url":"https://github.com/groupon-testium/webdriver-http-sync/pull/27.patch"},"body":"I'm getting a timeout running the tests locally. I noticed that the timeout registration was broken. So, I fixed that, but I'm still not sure why I'm seeing a timeout here.\r\n\r\n```\r\n$ npm test\r\n\r\n> webdriver-http-sync@1.0.0 pretest /home/sean/source/webdriver-http-sync\r\n> npm run build\r\n\r\n\r\n> webdriver-http-sync@1.0.0 build /home/sean/source/webdriver-http-sync\r\n> npub prep && coffee -cbo lib src\r\n\r\n\r\n> webdriver-http-sync@1.0.0 test /home/sean/source/webdriver-http-sync\r\n> mocha\r\n\r\n\r\n  Webdriver\r\nPhantomJS is launching GhostDriver...\r\n[INFO  - 2015-03-18T15:11:31.640Z] GhostDriver - Main - running on port 4499\r\n    1) \"before all\" hook: create driver\r\n\r\n  request\r\n[INFO  - 2015-03-18T15:11:31.652Z] Session [0f249b10-cd81-11e4-a732-8f5dc8231bc4] - CONSTRUCTOR - Desired Capabilities: {\"browserName\":\"phantomjs\"}\r\n[INFO  - 2015-03-18T15:11:31.652Z] Session [0f249b10-cd81-11e4-a732-8f5dc8231bc4] - CONSTRUCTOR - Negotiated Capabilities: {\"browserName\":\"phantomjs\",\"version\":\"1.9.0\",\"driverName\":\"ghostdriver\",\"driverVersion\":\"1.0.3\",\"platform\":\"linux-unknown-64bit\",\"javascriptEnabled\":true,\"takesScreenshot\":true,\"handlesAlerts\":false,\"databaseEnabled\":false,\"locationContextEnabled\":false,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"cssSelectorsEnabled\":true,\"webStorageEnabled\":false,\"rotatable\":false,\"acceptSslCerts\":false,\"nativeEvents\":true,\"proxy\":{\"proxyType\":\"direct\"}}\r\n[INFO  - 2015-03-18T15:11:31.652Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 0f249b10-cd81-11e4-a732-8f5dc8231bc4\r\n    ✓ sends a GET request \r\n    ✓ sends a POST request \r\n\r\n\r\n  2 passing (4s)\r\n  1 failing\r\n\r\n  1) Webdriver \"before all\" hook: create driver:\r\n     Error: Assertion failed: Failed to start WebDriver session: Error: Request connection timed out after 2000ms to: http://127.0.0.1:4499/session\r\n  at Object.callback (/home/sean/source/webdriver-http-sync/lib/request.js:101:22)\r\n  at Object.CurlRequest.end (/home/sean/source/webdriver-http-sync/node_modules/http-sync/http-sync.js:86:34)\r\n  at /home/sean/source/webdriver-http-sync/lib/request.js:103:18\r\n  at module.exports (/home/sean/source/webdriver-http-sync/lib/session.js:48:14)\r\n  at new WebDriver (/home/sean/source/webdriver-http-sync/lib/index.js:75:11)\r\n  at Context.<anonymous> (/home/sean/source/webdriver-http-sync/test/driver.test.coffee:43:19)\r\n  at callFn (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:266:21)\r\n  at Hook.Runnable.run (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:259:7)\r\n  at next (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runner.js:268:10)\r\n  at /home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runner.js:284:7\r\n  at done (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:222:5)\r\n  at /home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:242:9\r\n  at Socket.<anonymous> (/home/sean/source/webdriver-http-sync/test/driver.test.coffee:38:9)\r\n  at Socket.emit (events.js:117:20)\r\n  at Socket.<anonymous> (_stream_readable.js:765:14)\r\n  at Socket.emit (events.js:92:17)\r\n  at emitReadable_ (_stream_readable.js:427:10)\r\n  at emitReadable (_stream_readable.js:423:5)\r\n  at readableAddChunk (_stream_readable.js:166:9)\r\n  at Socket.Readable.push (_stream_readable.js:128:10)\r\n  at Pipe.onread (net.js:529:21)\r\n\r\nExpected: 408\r\nActually: 200\r\n    at error (/home/sean/source/webdriver-http-sync/node_modules/assertive/lib/assertive.js:441:12)\r\n    at Object.assert.equal (/home/sean/source/webdriver-http-sync/node_modules/assertive/lib/assertive.js:105:15)\r\n    at module.exports (/home/sean/source/webdriver-http-sync/lib/session.js:49:10)\r\n    at new WebDriver (/home/sean/source/webdriver-http-sync/lib/index.js:75:11)\r\n    at Context.<anonymous> (/home/sean/source/webdriver-http-sync/test/driver.test.coffee:43:19)\r\n    at callFn (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:266:21)\r\n    at Hook.Runnable.run (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:259:7)\r\n    at next (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runner.js:268:10)\r\n    at /home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runner.js:284:7\r\n    at done (/home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:222:5)\r\n    at /home/sean/source/webdriver-http-sync/node_modules/mocha/lib/runnable.js:242:9\r\n    at Socket.<anonymous> (/home/sean/source/webdriver-http-sync/test/driver.test.coffee:38:9)\r\n    at Socket.emit (events.js:117:20)\r\n    at Socket.<anonymous> (_stream_readable.js:765:14)\r\n    at Socket.emit (events.js:92:17)\r\n    at emitReadable_ (_stream_readable.js:427:10)\r\n    at emitReadable (_stream_readable.js:423:5)\r\n    at readableAddChunk (_stream_readable.js:166:9)\r\n    at Socket.Readable.push (_stream_readable.js:128:10)\r\n    at Pipe.onread (net.js:529:21)\r\n  \r\n\r\nnpm ERR! Test failed.  See above for more details.\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/issues/comments/83213300","html_url":"https://github.com/groupon-testium/webdriver-http-sync/pull/27#issuecomment-83213300","issue_url":"https://api.github.com/repos/groupon-testium/webdriver-http-sync/issues/27","id":83213300,"user":{"login":"EndangeredMassa","id":41545,"avatar_url":"https://avatars.githubusercontent.com/u/41545?v=3","gravatar_id":"","url":"https://api.github.com/users/EndangeredMassa","html_url":"https://github.com/EndangeredMassa","followers_url":"https://api.github.com/users/EndangeredMassa/followers","following_url":"https://api.github.com/users/EndangeredMassa/following{/other_user}","gists_url":"https://api.github.com/users/EndangeredMassa/gists{/gist_id}","starred_url":"https://api.github.com/users/EndangeredMassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EndangeredMassa/subscriptions","organizations_url":"https://api.github.com/users/EndangeredMassa/orgs","repos_url":"https://api.github.com/users/EndangeredMassa/repos","events_url":"https://api.github.com/users/EndangeredMassa/events{/privacy}","received_events_url":"https://api.github.com/users/EndangeredMassa/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T22:38:31Z","updated_at":"2015-03-18T22:38:31Z","body":"Ah, yes. That was the previous behavior.\r\n\r\nThis behavior makes the error more obvious while still including a lot of detail. I also don't feel strongly about it, though."}}