koishijs / koishi-plugin-image-search

图片搜索,支持 saucenao, ascii2d 等多个平台
MIT License
10 stars 6 forks source link

Bug(image-search): ascii2d command keep reporting error code 403 #1

Closed MaikoTan closed 2 years ago

MaikoTan commented 2 years ago

Describe the bug

As the title says, when using ascii2d to search for an image, the request would always failed with error code 403.

Steps to reproduce

Expected behavior

Be able to search images via ascii2d

Screenshots

No response

Versions

Additional context

So it turns out that ascii2d has enabled Cloudflare DDNS protection somehow, when you trying to send a request by axios, it would not pass the CAPTCHA.

MaikoTan commented 2 years ago

So there are several solutions: