Skip to content

UnhandledPromiseRejectionWarning #15331

Closed

Description

@maicss
  • Version: 8.4.0
  • Platform: Mac OS
  • Subsystem:

As a beginner, to write server, I always see this but cannot find where is the uncaught error.

Will you add the line number [or error stack]to this error?

Thanks.

Activity

  1. added
    feature requestIssues requesting new Node.js features.
    promisesIssues and PRs related to ECMAScript promises.
    on Sep 11, 2017
  2. bnoordhuis commented on Sep 11, 2017

    @bnoordhuis
    Member

    Does node --trace-warnings script.js work for you?

  3. maicss commented on Sep 11, 2017

    @maicss
    Author

    I think this should be an error, and definitely avoid in development, should not be a feature that open by start runtime with some flag.

  4. bnoordhuis commented on Sep 11, 2017

    @bnoordhuis
    Member

    A quick search would have led you to #12734. To summarize: it's under discussion but won't happen in the v8.x branch.

    I'll go ahead and close this out. Your question has been answered and there isn't anything immediately actionable otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.promisesIssues and PRs related to ECMAScript promises.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions