Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 18.19.0 in docker container does not exit when unhandled promise rejection occured. #56418

Open
MengLi619 opened this issue Dec 31, 2024 · 0 comments

Comments

@MengLi619
Copy link

Version

18.19.0

Platform

Docker (node:18.19.0-alpine3.17)

Subsystem

No response

What steps will reproduce the bug?

We depend on nodejs process exit and restart to complete the startup process. But nodejs in the container (node:18.19.0-alpine3.17) does not exit but throws a warning.

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:

How often does it reproduce? Is there a required condition?

Every time

What is the expected behavior? Why is that the expected behavior?

Node process should exit, this should be a default behavior after node15.

What do you see instead?

Node does not exit but throws a warning:

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant