Node.js/err
来自康健生活
< Node.js
引言
- UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
- 定位问题
process.on('unhandledRejection', (reason, p) => { console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); // application specific logging, throwing an error, or other logic here });
- property 'socket' -> object with constructor 'Socket'
- Cannot set headers after they are sent to the client
No categories