Startup in "server" mode gives "UnhandledPromiseRejectionWarning" in Node 6.7.0
See original GitHub issueIssue details
When starting BrowserSync in “server” mode, the following warning is given:
(node:1362) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited with code 3
Steps to reproduce/test case
browserSync.init() with “server” option configured. Removing server option/configuration gets rid of warning.
Please specify which version of Browsersync, node and npm you’re running
- Browsersync [ 2.17.3 ]
- Node [ 6.7.0 ]
- Npm [ 3.10.3 ]
Affected platforms
- linux
- [? ] windows
- [? ] OS X
- [? ] freebsd
- [? ] solaris
- other (please specify which)
Browsersync use-case
- API
- Gulp
- Grunt
- CLI
If CLI, please paste the entire command below
{cli command here}
for all other use-cases, (gulp, grunt etc), please show us exactly how you’re using Browsersync
browserSync.init({
server: "./web",
port: 8000,
ui: {
port: 8001
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
How to find which promises are unhandled in Node.js ...
(node:11057) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.
Read more >Changelog | Meteor API Docs
Changes to keep everything compatible with MongoDB Server 5.x and MongoDB Node.js driver 4.x. npm-mongo@4.3.1. Upgraded MongoDB Node.js ...
Read more >Node.js 15 release: Updated handling of rejections, npm 7, N ...
UnhandledPromiseRejectionWarning : Unhandled promise rejection. This error originated either by throwing inside of an async function without a ...
Read more >Running on Windows - Node-RED
Run Node-RED on Startup If you want to use Windows as a production platform for Node-RED, you will want to have a Windows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Purely a guess, but my hunch is that it’s related to trying to open a local browser window. As I’ve personally only seen it appear on browser-less Linux systems.
Same here. Fresh install of Ubuntu Server 16.04 and only using the CLI option, not Gulp or any other packages.