Skip to content

Node.js process does not exit when unhandled promise rejection occured #2195

Open
@MengLi619

Description

@MengLi619

Environment

  • Platform: Azure AKS
  • Docker Version: Unknown
  • Node.js Version: 18.19.0
  • Image Tag: node:18.19.0-alpine3.17

Expected Behavior

Node.js process should exit when unhandled promise rejection occurs

Current Behavior

Node.js process does not exit when unhandled promise rejection occurs

Possible Solution

Node.js process should exit because it's the default behavior after node.js 15, we depend on this behavior to restart and retry to finish the application startup process.

Steps to Reproduce

During the startup process, after an unhandled rejection is thrown, the node.js process does not exit.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions