{"action":"created","issue":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/1417","repository_url":"https://api.github.com/repos/BrowserSync/browser-sync","labels_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/1417/labels{/name}","comments_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/1417/comments","events_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/1417/events","html_url":"https://github.com/BrowserSync/browser-sync/issues/1417","id":252449193,"number":1417,"title":"Browser-sync watches files, but doesn't reload/inject changes","user":{"login":"jakkrobbit","id":29902357,"avatar_url":"https://avatars3.githubusercontent.com/u/29902357?v=4","gravatar_id":"","url":"https://api.github.com/users/jakkrobbit","html_url":"https://github.com/jakkrobbit","followers_url":"https://api.github.com/users/jakkrobbit/followers","following_url":"https://api.github.com/users/jakkrobbit/following{/other_user}","gists_url":"https://api.github.com/users/jakkrobbit/gists{/gist_id}","starred_url":"https://api.github.com/users/jakkrobbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakkrobbit/subscriptions","organizations_url":"https://api.github.com/users/jakkrobbit/orgs","repos_url":"https://api.github.com/users/jakkrobbit/repos","events_url":"https://api.github.com/users/jakkrobbit/events{/privacy}","received_events_url":"https://api.github.com/users/jakkrobbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-23T23:55:19Z","updated_at":"2017-08-24T09:53:45Z","closed_at":null,"body":"### Issue details\r\n\r\nFor several weeks now, when I start browser-sync, it gets to a certain point where it takes an unusually long time to load before displaying this message:\r\n>This page isn’t working\r\n>localhost didn’t send any data.\r\n>ERR_EMPTY_RESPONSE\r\n\r\nSometimes it will seem to work fine, and then it will give me that error page again.\r\n\r\n### Please specify which version of Browsersync, node and npm you're running\r\n\r\n- Browsersync [  2.18.13  ]\r\n- Node        [  6.10.13  ]\r\n- Npm         [  5.3.0  ]\r\n\r\n### Affected platforms\r\n\r\n- [ ] linux\r\n- [x] windows\r\n- [ ] OS X\r\n- [ ] freebsd\r\n- [ ] solaris\r\n- [ ] other _(please specify which)_\r\n\r\n### Browsersync use-case\r\n\r\n- [X] API\r\n- [X] Gulp\r\n- [ ] Grunt\r\n- [ ] CLI\r\n\r\n### for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync\r\nI was originally doing this with a basic bs-config.js file.\r\n```\r\nmodule.exports = {\r\n    \"ui\": {\r\n        \"port\": 3001,\r\n        \"weinre\": {\r\n            \"port\": 8080\r\n        }\r\n    },\r\n    \"files\": [\"**/*.php\", \"css/*.css\", \"**/*.js\"],\r\n    \"watchEvents\": [\r\n        \"change\"\r\n    ],\r\n    \"watchOptions\": {\r\n        \"ignoreInitial\": true\r\n    },\r\n    \"server\": false,\r\n    \"proxy\": \"findmercy.dev\",\r\n    \"port\": 3000,\r\n    \"middleware\": false,\r\n    \"serveStatic\": [],\r\n    \"ghostMode\": {\r\n        \"clicks\": true,\r\n        \"scroll\": true,\r\n        \"location\": true,\r\n        \"forms\": {\r\n            \"submit\": true,\r\n            \"inputs\": true,\r\n            \"toggles\": true\r\n        }\r\n    },\r\n    \"logLevel\": \"warn\",\r\n    \"logPrefix\": \"BS\",\r\n    \"logConnections\": true,\r\n    \"logFileChanges\": true,\r\n    \"logSnippet\": true,\r\n    \"rewriteRules\": [],\r\n    \"open\": false,\r\n    \"browser\": \"default\",\r\n    \"cors\": false,\r\n    \"xip\": false,\r\n    \"reloadOnRestart\": true,\r\n    \"notify\": true,\r\n    \"scrollProportionally\": true,\r\n    \"scrollThrottle\": 0,\r\n    \"scrollRestoreTechnique\": \"window.name\",\r\n    \"scrollElements\": [],\r\n    \"scrollElementMapping\": [],\r\n    \"reloadDelay\": 0,\r\n    \"reloadDebounce\": 0,\r\n    \"reloadThrottle\": 0,\r\n    \"plugins\": [],\r\n    \"injectChanges\": true,\r\n    \"startPath\": null,\r\n    \"minify\": true,\r\n    \"host\": null,\r\n    \"localOnly\": false,\r\n    \"codeSync\": true,\r\n    \"timestamps\": true,\r\n    \"clientEvents\": [\r\n        \"scroll\",\r\n        \"scroll:element\",\r\n        \"input:text\",\r\n        \"input:toggles\",\r\n        \"form:submit\",\r\n        \"form:reset\",\r\n        \"click\"\r\n    ],\r\n    \"socket\": {\r\n        \"socketIoOptions\": {\r\n            \"log\": false\r\n        },\r\n        \"socketIoClientConfig\": {\r\n            \"reconnectionAttempts\": 50\r\n        },\r\n        \"path\": \"/browser-sync/socket.io\",\r\n        \"clientPath\": \"/browser-sync\",\r\n        \"namespace\": \"/browser-sync\",\r\n        \"clients\": {\r\n            \"heartbeatTimeout\": 5000\r\n        }\r\n    },\r\n    \"tagNames\": {\r\n        \"less\": \"link\",\r\n        \"scss\": \"link\",\r\n        \"css\": \"link\",\r\n        \"jpg\": \"img\",\r\n        \"jpeg\": \"img\",\r\n        \"png\": \"img\",\r\n        \"svg\": \"img\",\r\n        \"gif\": \"img\",\r\n        \"js\": \"script\"\r\n    }\r\n};\r\n```\r\n\r\n\r\nI started using browser-sync with gulp to see if that somehow fixed whatever the issue is.\r\n```\r\ngulp.task('browser-sync', function () {\r\n    browserSync.init({\r\n        files: [\"**/*.php\", \"css/*.css\", \"**/*.js\"],\r\n        proxy: 'findmercy.dev',\r\n        open: false\r\n    });\r\n});\r\n\r\ngulp.task('bs-reload', function () {\r\n    browserSync.reload();\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/comments/324589694","html_url":"https://github.com/BrowserSync/browser-sync/issues/1417#issuecomment-324589694","issue_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/1417","id":324589694,"user":{"login":"entozoon","id":5763772,"avatar_url":"https://avatars3.githubusercontent.com/u/5763772?v=4","gravatar_id":"","url":"https://api.github.com/users/entozoon","html_url":"https://github.com/entozoon","followers_url":"https://api.github.com/users/entozoon/followers","following_url":"https://api.github.com/users/entozoon/following{/other_user}","gists_url":"https://api.github.com/users/entozoon/gists{/gist_id}","starred_url":"https://api.github.com/users/entozoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entozoon/subscriptions","organizations_url":"https://api.github.com/users/entozoon/orgs","repos_url":"https://api.github.com/users/entozoon/repos","events_url":"https://api.github.com/users/entozoon/events{/privacy}","received_events_url":"https://api.github.com/users/entozoon/received_events","type":"User","site_admin":false},"created_at":"2017-08-24T09:53:45Z","updated_at":"2017-08-24T09:53:45Z","body":"Same problem here, even without Gulp, e.g. from commandline:\r\n```javascript\r\nbrowser-sync start --server --files \"dist/*.css\"\r\n```\r\nOr as an npm script:\r\n```javascript\r\n{\r\n  \"scripts\": {\r\n    \"serve\": \"browser-sync start --server --files 'dist/*.css'\"\r\n  }\r\n}\r\n```\r\nThey serve the page and watch the files, as normal, outputting\r\n```\r\n[Browsersync] Serving files from: ./\r\n[Browsersync] Watching files...\r\n[Browsersync] File event [change] : dist\\app.css\r\n```\r\n\r\nBut there is no change in the browser, no reload/injection.\r\n\r\nI have tried a couple of computers (Windows 10), various browsers and a few versions of browser-sync too, so I wonder if there is something more systemic going on here.\r\n\r\nThe browser has no console messages, so perhaps the socket connection isn't hooking in at all?"}}
{"actor":{"display_login":"entozoon"}}