saifeiLee / xhs-js

基于小红书web端的请求封装,JS实现
MIT License
25 stars 3 forks source link

访问异常 #5

Closed I-BlueDragon closed 1 month ago

I-BlueDragon commented 2 months ago

使用getNoteById来访问用户笔记时出现data: { code: 300013, success: false, msg: '访问频次异常,请勿频繁操作或重启试试', data: {} } 但是status: 200, statusText: 'OK'基础信息正常

过很长一段时间后才会回复,期间重新登陆以及更换cookie无用

其他附加报错内容: Error fetching note: DataFetchError: [object Object] at XhsClient.request (F:\Program Files\Desktop\xhs-js-main\src\index.js:96:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async XhsClient.getNoteById (F:\Program Files\Desktop\xhs-js-main\src\index.js:159:16) at async test (F:\Program Files\Desktop\xhs-js-main\example\index.js:41:29) node:internal/process/promises:289 triggerUncaughtException(err, true / fromPromise /); ^

DataFetchError: [object Object] at XhsClient.request (F:\Program Files\Desktop\xhs-js-main\src\index.js:96:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async XhsClient.getNoteById (F:\Program Files\Desktop\xhs-js-main\src\index.js:159:16) at async test (F:\Program Files\Desktop\xhs-js-main\example\index.js:41:29)

Node.js v21.7.1

saifeiLee commented 1 month ago

使用getNoteById来访问用户笔记时出现data: { code: 300013, success: false, msg: '访问频次异常,请勿频繁操作或重启试试', data: {} } 但是status: 200, statusText: 'OK'基础信息正常

过很长一段时间后才会回复,期间重新登陆以及更换cookie无用

其他附加报错内容: Error fetching note: DataFetchError: [object Object] at XhsClient.request (F:\Program Files\Desktop\xhs-js-main\src\index.js:96:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async XhsClient.getNoteById (F:\Program Files\Desktop\xhs-js-main\src\index.js:159:16) at async test (F:\Program Files\Desktop\xhs-js-main\example\index.js:41:29) node:internal/process/promises:289 triggerUncaughtException(err, true / fromPromise /); ^

DataFetchError: [object Object] at XhsClient.request (F:\Program Files\Desktop\xhs-js-main\src\index.js:96:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async XhsClient.getNoteById (F:\Program Files\Desktop\xhs-js-main\src\index.js:159:16) at async test (F:\Program Files\Desktop\xhs-js-main\example\index.js:41:29)

Node.js v21.7.1

平台风控,无解。