Open Miuzarte opened 1 week ago
好像确实出问题,几天前还好的,目前我也没什么办法,先观望一下把
1.1 好像 node 18 之后不能直接用了,回头我处理一下看看
https://johnnyreilly.com/node-18-axios-and-unsafe-legacy-renegotiation-disabled
我遇到的是ascii2d能搜图,但是获取不到缩略图,TLSv1.2,log显示403
2024/11/20 00:23:01 [error] getAntiShieldedCqImg64FromUrl
2024/11/20 00:23:01 AxiosError: Request failed with status code 403
at settle (file:///root/cqps/node_modules/axios/lib/core/settle.js:19:12)
at BrotliDecompress.handleStreamEnd (file:///root/cqps/node_modules/axios/lib/adapters/http.js:599:11)
at BrotliDecompress.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (file:///root/cqps/node_modules/axios/lib/core/Axios.js:45:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async retryAsync (file:///root/cqps/src/utils/retry.mjs:11:14)
at async getAntiShieldedCqImg64FromUrl (file:///root/cqps/src/utils/image.mjs:34:25)
at async getResult (file:///root/cqps/src/plugin/ascii2d.mjs:144:30)
at async doSearch (file:///root/cqps/src/plugin/ascii2d.mjs:48:20)
at async searchImg (file:///root/cqps/src/index.mjs:644:54)
2024/11/20 00:23:01 {
config: {
method: 'get',
url: 'https://ascii2d.net/thumbnail/6/d/c/8/6dc869a73e190bc6d36bc0a2d39a39fa.jpg',
data: undefined
},
response: { status: 403, statusText: 'Forbidden' }
}
2024/11/20 00:23:01 [error] getAntiShieldedCqImg64FromUrl
2024/11/20 00:23:01 AxiosError: Request failed with status code 403
at settle (file:///root/cqps/node_modules/axios/lib/core/settle.js:19:12)
at BrotliDecompress.handleStreamEnd (file:///root/cqps/node_modules/axios/lib/adapters/http.js:599:11)
at BrotliDecompress.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (file:///root/cqps/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async retryAsync (file:///root/cqps/src/utils/retry.mjs:11:14)
at async getAntiShieldedCqImg64FromUrl (file:///root/cqps/src/utils/image.mjs:34:25)
at async getResult (file:///root/cqps/src/plugin/ascii2d.mjs:144:30)
at async doSearch (file:///root/cqps/src/plugin/ascii2d.mjs:49:19)
at async searchImg (file:///root/cqps/src/index.mjs:644:54)
2024/11/20 00:23:01 {
config: {
method: 'get',
url: 'https://ascii2d.net/thumbnail/b/6/5/c/b65c47fcb0127a230bd1cff734e490ec.jpg',
data: undefined
},
response: { status: 403, statusText: 'Forbidden' }
}
Discussed in https://github.com/Tsuk1ko/cq-picsearcher-bot/discussions/477
试了下朋友的cqps也是一样情况,应该不是我的问题(