简体   繁体   English

如何在未处理的承诺拒绝警告上解释节点代码和拒绝ID?

[英]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? node:告诉我什么? Also, what does rejection id: tell me? 另外, rejection id:告诉我什么?

--NOTE-- - 注意 -

My question is not how to find the unhandled promise, but what the "numbers" in the warning communicate. 我的问题不是如何找到未兑现的承诺,而是警告中的“数字”传达了什么。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 可能未处理的承诺拒绝 (id:0) 警告 - Possible Unhandled Promise Rejection (id:0) Warning 未处理的承诺拒绝警告-Node.js - Unhandled Promise Rejection Warning - Node.js 节点:未处理的 promise 拒绝 - Node: Unhandled promise rejection UnhandledPromiseRejectionWarning:Node.JS中未处理的承诺拒绝(拒绝ID:1) - UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1) in Node.JS 如何解决未处理的 Promise 拒绝警告 - How to resolve Unhandled Promise Rejection Warning UnhandledPromiseRejectionWarning:未处理的承诺拒绝(拒绝ID:3): - UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): 使用React-native访问Node会返回未处理的承诺拒绝警告(id:0) - Accessing Node with React-native returns an unhandled promise rejection warning (id: 0) 在响应本机中可能出现未处理的承诺拒绝(id:0)警告 - Possible Unhandled Promise Rejection (id:0) Warning in react native 'UnhandledPromiseRejection'警告:未处理的承诺拒绝(拒绝ID:2):TypeError:res.status(…).json(…).catch不是函数 - 'UnhandledPromiseRejection' Warning: Unhandled promise rejection (rejection id: 2): TypeError: res.status(…).json(…).catch is not a function 为什么我收到“可能未处理的 Promise 拒绝 (id:0):”控制台警告以及如何摆脱它 - Why am I getting a "Possible Unhandled Promise Rejection (id:0):" console warning and how to get rid of it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM