question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Startup in "server" mode gives "UnhandledPromiseRejectionWarning" in Node 6.7.0

See original GitHub issue

Issue 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:closed
  • Created 7 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Codelicacommented, Nov 3, 2016

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.

3reactions
oduskacommented, Oct 13, 2016

Same here. Fresh install of Ubuntu Server 16.04 and only using the CLI option, not Gulp or any other packages.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found