简体   繁体   中英

How to interpret the node code and rejection id on a Unhandled Promise Rejection Warning?

When running a unit test on a typescript service I am seeing this warning:

(node:79377) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): [object Object]

What does node: tell me? Also, what does rejection id: tell me?

--NOTE--

My question is not how to find the unhandled promise, but what the "numbers" in the warning communicate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM