Tsuk1ko / cq-picsearcher-bot

🤖 基于 saucenao / ascii2d / whatanime 的搜图机器人
https://moe.best/projects/qq-robot-picfinder.html
GNU General Public License v3.0
1.54k stars 216 forks source link

ascii2d一直403 #478

Open Miuzarte opened 1 week ago

Miuzarte commented 1 week ago

Discussed in https://github.com/Tsuk1ko/cq-picsearcher-bot/discussions/477

Originally posted by **Miuzarte** November 14, 2024 TLSv1.2下403 ```log 11/14/2024, 2:53:27 PM [error] ascii2d 11/14/2024, 2:53:27 PM AxiosError: Request failed with status code 403 at settle (file:///root/Miuzarte/cq-picsearcher-bot/node_modules/axios/lib/core/settle.js:19:12) at BrotliDecompress.handleStreamEnd (file:///root/Miuzarte/cq-picsearcher-bot/node_modules/axios/lib/adapters/http.js:589: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/Miuzarte/cq-picsearcher-bot/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///root/Miuzarte/cq-picsearcher-bot/src/plugin/ascii2d.mjs:28:19 at async retryAsync (file:///root/Miuzarte/cq-picsearcher-bot/src/utils/retry.mjs:11:14) at async doSearch (file:///root/Miuzarte/cq-picsearcher-bot/src/plugin/ascii2d.mjs:26:37) at async searchImg (file:///root/Miuzarte/cq-picsearcher-bot/src/index.mjs:644:54) ``` 1.1下 ```log write EPROTO 20A0006D7D000000:error:0A00014D:SSL routines:tls_process_key_exchange:legacy sigalg disallowed or unsupported:../deps/openssl/openssl/ssl/statem/statem_clnt.c:2262: ``` 走不走代理都是403,PC浏览器正常访问

试了下朋友的cqps也是一样情况,应该不是我的问题(

Tsuk1ko commented 1 week ago

好像确实出问题,几天前还好的,目前我也没什么办法,先观望一下把

1.1 好像 node 18 之后不能直接用了,回头我处理一下看看

https://johnnyreilly.com/node-18-axios-and-unsafe-legacy-renegotiation-disabled

YipSzeho commented 2 days ago

我遇到的是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' }
}