NeteaseCloudMusicApi icon indicating copy to clipboard operation
NeteaseCloudMusicApi copied to clipboard

打卡听歌时出现报错

Open y1713375484 opened this issue 3 years ago • 0 comments

环境

  • 系统/平台: window10

  • nodejs 版本: v16.15.0

  • API版本: 4.6.7

出现问题

在网易云遍历打卡听歌单的时候会偶发性的报错,时不时的就跳出来报错,百度了下,貌似是什么地方连接超时了好像

这是第一种报错

status: 502, body: { code: 502, msg: Error: socket hang up at connResetException (node:internal/errors:692:14) at TLSSocket.socketOnEnd (node:_http_client:478:23) at TLSSocket.emit (node:events:539:35) at endReadableNT (node:internal/streams/readable:1345:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) { code: 'ECONNRESET', config: [Object], request: [Writable], response: undefined, isAxiosError: true, toJSON: [Function: toJSON] } } } D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules\express\lib\response.js:1123 : JSON.stringify(value); ^ TypeError: Converting circular structure to JSON --> starting at object with constructor 'TLSSocket' | property '_httpMessage' -> object with constructor 'ClientRequest' --- property 'socket' closes the circle at JSON.stringify () at stringify (D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules?[4mexpress?[24m\lib\response.js:1123:12) at ServerResponse.json (D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules?[4mexpress?[24m\lib\response.js:260:14) at ServerResponse.send (D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules?[4mexpress?[24m\lib\response.js:158:21) at D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\server.js:270:43 at runMicrotasks () ?[90m at processTicksAndRejections (node:internal/process/task_queues:96:5)?[39m

--

有时候会报错这种

status: 502, body: { code: 502, msg: Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { errno: -4077, code: 'ECONNRESET', syscall: 'read', config: [Object], request: [Writable], response: undefined, isAxiosError: true, toJSON: [Function: toJSON] } } } D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules\express\lib\response.js:1123 : JSON.stringify(value); ^ TypeError: Converting circular structure to JSON --> starting at object with constructor 'Object' | property 'httpsAgent' -> object with constructor 'Agent' | property 'sockets' -> object with constructor 'Object' | ... \| property 'errored' -> object with constructor 'Object' --- property 'config' closes the circle at JSON.stringify () at stringify (D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules\?[4mexpress?[24m\lib\response.js:1123:12) at ServerResponse.json (D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules\?[4mexpress?[24m\lib\response.js:260:14) at ServerResponse.send (D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\node_modules\?[4mexpress?[24m\lib\response.js:158:21) at D:\wamp64\www\wyyapi\NeteaseCloudMusicApi\server.js:270:43 at runMicrotasks () ?[90m at processTicksAndRejections (node:internal/process/task_queues:96:5)?[39m

这两种报错都是随机出现的

第一次用git,这个描述的格式不太会调整,见谅哈

y1713375484 avatar Aug 27 '22 04:08 y1713375484