{"action":"closed","issue":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/421","labels_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/421/comments","events_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/421/events","html_url":"https://github.com/BrowserSync/browser-sync/issues/421","id":56453929,"number":421,"title":"browser-sync throwing 'task completion callback called too many times'","user":{"login":"kumavis","id":1474978,"avatar_url":"https://avatars.githubusercontent.com/u/1474978?v=3","gravatar_id":"","url":"https://api.github.com/users/kumavis","html_url":"https://github.com/kumavis","followers_url":"https://api.github.com/users/kumavis/followers","following_url":"https://api.github.com/users/kumavis/following{/other_user}","gists_url":"https://api.github.com/users/kumavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kumavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumavis/subscriptions","organizations_url":"https://api.github.com/users/kumavis/orgs","repos_url":"https://api.github.com/users/kumavis/repos","events_url":"https://api.github.com/users/kumavis/events{/privacy}","received_events_url":"https://api.github.com/users/kumavis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-03T23:12:59Z","updated_at":"2015-02-04T09:13:27Z","closed_at":"2015-02-04T09:13:27Z","body":"```js\r\ngulp.task('browser-sync', browserSync)\r\nfunction browserSync() {\r\n  browserSync({\r\n    // logSnippet: false,\r\n    server: {\r\n      baseDir: './dist',\r\n    },\r\n    // port: process.env.PORT || 3000,\r\n  })\r\n}\r\n```\r\n```\r\n╭─{👘 } kumavis in ~/Development/Node/vapor on (master✱)\r\n╰─○ gulp browser-sync\r\n[15:10:46] Using gulpfile ~/Development/Node/vapor/gulpfile.js\r\n[15:10:46] Starting 'browser-sync'...\r\n[15:10:46] Finished 'browser-sync' after 15 ms\r\n[BS] Copy the following snippet into your website, just before the closing </body> tag\r\n<script type='text/javascript' id=\"__bs_script__\">//<![CDATA[\r\n    document.write(\"<script async src='//HOST:3000/browser-sync/browser-sync-client.2.0.0-rc5.js'><\\/script>\".replace(/HOST/g, location.hostname).replace(/PORT/g, location.port));\r\n//]]></script>\r\n[15:10:46] 'browser-sync' errored after 143 ms\r\n[15:10:46] Error: task completion callback called too many times\r\n    at finish (/Users/kumavis/Development/Node/vapor/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:17:10)\r\n    at cb (/Users/kumavis/Development/Node/vapor/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:31:3)\r\n    at /Users/kumavis/Development/Node/vapor/node_modules/browser-sync/lib/browser-sync.js:243:12\r\n    at /Users/kumavis/Development/Node/vapor/node_modules/browser-sync/node_modules/async-each-series/index.js:15:40\r\n    at executeTask (/Users/kumavis/Development/Node/vapor/node_modules/browser-sync/lib/browser-sync.js:171:13)\r\n    at Object.module.exports.initUserPlugins [as fn] (/Users/kumavis/Development/Node/vapor/node_modules/browser-sync/lib/async.js:234:9)\r\n    at /Users/kumavis/Development/Node/vapor/node_modules/browser-sync/lib/browser-sync.js:126:14\r\n    at iterate (/Users/kumavis/Development/Node/vapor/node_modules/browser-sync/node_modules/async-each-series/index.js:8:5)\r\n    at /Users/kumavis/Development/Node/vapor/node_modules/browser-sync/node_modules/async-each-series/index.js:16:16\r\n    at executeTask (/Users/kumavis/Development/Node/vapor/node_modules/browser-sync/lib/browser-sync.js:171:13)\r\n^C%                                                                                                                                                                                 \r\n\r\n╭─{👘 } kumavis in ~/Development/Node/vapor on (master✱)\r\n╰─○ npm ls | grep browser-sync\r\n├─┬ browser-sync@2.0.0-rc5\r\n│ ├── browser-sync-client@1.0.1\r\n│ ├─┬ browser-sync-ui@0.4.4\r\nnpm ERR! extraneous: gulp-rimraf@0.1.1 /Users/kumavis/Development/Node/vapor/node_modules/gulp-rimraf\r\nnpm ERR! extraneous: esprima@1.1.0-dev /Users/kumavis/Development/Node/vapor/node_modules/brfs/node_modules/static-module/node_modules/falafel/node_modules/esprima\r\nnpm ERR! extraneous: gulp-clean@0.3.1 /Users/kumavis/Development/Node/vapor/node_modules/gulp-clean\r\nnpm ERR! not ok code 0\r\n```"}}