Node.js/err:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第10行: 第10行:
* Cannot set headers after they are sent to the client
* Cannot set headers after they are sent to the client
* verbose stack spawn ENOENT
* verbose stack spawn ENOENT
* Error: ENOSPC: no space left on device, write
: 磁盘空间不足

2022年1月31日 (一) 02:39的版本

引言

  • 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
  • verbose stack spawn ENOENT
  • Error: ENOSPC: no space left on device, write
磁盘空间不足