Node.js/err

来自康健生活
Kangkk​(留言 | 贡献)2022年1月31日 (一) 02:40的版本 (→引言)

引言

  • 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
磁盘空间不足
检查
[jian@kang /home/kangkk]$
df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda1      ext4       99G   94G     0 100% /
devtmpfs       devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs          tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs          tmpfs     1.9G  8.4M  1.9G   1% /run
tmpfs          tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs          tmpfs     379M     0  379M   0% /run/user/58964