Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 在使用konachan图库的问题 #250

Open
Magic-riding opened this issue Nov 14, 2024 · 2 comments
Open

Bug: 在使用konachan图库的问题 #250

Magic-riding opened this issue Nov 14, 2024 · 2 comments

Comments

@Magic-riding
Copy link

Describe the bug

在使用konachan SFW图库的时候不管是否限制数量都会出现一股脑获取到若干个图片,而且每次获取的图片都是那几样
在使用konachan NSFW图库的时候会报错:booru source konachan request failed with code 403。我不确定是否是我自身的网络问题

Steps to reproduce

PixPin_2024-11-14_23-48-27
PixPin_2024-11-14_23-49-09

Expected behavior

在konachan SFW里希望与其他图库一样在没有指定数量时都是只获取一张图片,而且每次获取到的图片尽量都是随机的
在konachan NSFW里希望确定是否是我自身网络问题

Screenshots

PixPin_2024-11-14_23-27-02

Relevant log output

在konachan SFW里日志里没有报错。
在konachan NSFW里的报错:
booru source konachan request failed with code 403 "<!DOCTYPE html><html lang=\"en-US\"><head><title>Just a moment...</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"><meta name=\"robots\" content=\"noindex,nofollow\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{display:flex;flex-direction:column;height:100vh;min-height:100vh}.main-content{margin:8rem auto;max-width:60rem;padding-left:1.5rem}@media (width <= 720px){.main-content{margin-top:4rem}}.h2{font-size:1.5rem;font-weight:500;line-height:2.25rem}@media (width <= 720px){.h2{font-size:1.25rem;line-height:1.5rem}}#challenge-error-text{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0IyMEYwMyIgZD0iTTE2IDNhMTMgMTMgMCAxIDAgMTMgMTNBMTMuMDE1IDEzLjAxNSAwIDAgMCAxNiAzbTAgMjRhMTEgMTEgMCAxIDEgMTEtMTEgMTEuMDEgMTEuMDEgMCAwIDEtMTEgMTEiLz48cGF0aCBmaWxsPSIjQjIwRjAzIiBkPSJNMTcuMDM4IDE4LjYxNUgxNC44N0wxNC41NjMgOS41aDIuNzgzem0tMS4wODQgMS40MjdxLjY2IDAgMS4wNTcuMzg4LjQwNy4zODkuNDA3Ljk5NCAwIC41OTYtLjQwNy45ODQtLjM5Ny4zOS0xLjA1Ny4zODktLjY1IDAtMS4wNTYtLjM4OS0uMzk4LS4zODktLjM5OC0uOTg0IDAtLjU5Ny4zOTgtLjk4NS40MDYtLjM5NyAxLjA1Ni0uMzk3Ii8+PC9zdmc+);background-repeat:no-repeat;background-size:contain;padding-left:34px}@media (prefers-color-scheme:dark){body{background-color:#222;color:#d9d9d9}}</style><meta http-equiv=\"refresh\" content=\"390\"></head><body class=\"no-js\"><div class=\"main-wrapper\" role=\"main\"><div class=\"main-content\"><noscript><div class=\"h2\"><span id=\"challenge-error-text\">Enable JavaScript and cookies to continue</span></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '3',cZone: \"konachan.com\",cType: 'managed',cRay: '8e28807cf9458b78',cH: 'wrPu8stoHuvfgWC0dEsZFHbxAjhF9J5o8fXtLbzT72k-1731603040-1.2.1.1-6BcVDjHlhMwITHKlf9tgJbGQJ8RKsRDHxUEcd28pYg6ogDMUSbhEE_yiDp33lbpS',cUPMDTk: \"\\/post.json?__cf_chl_tk=JpJuv807Z4Ds.z9d1Bi179m1h73OBiSc6a7hbn5NyHE-1731603040-1.0.1.1-jTkhUiWg3YxoU0Q5fCTjPFti_8HxeCVCoT8pZr.tUzM\",cFPWv: 'b',cITimeS: '1731603040',cTTimeMs: '1000',cMTimeMs: '390000',cTplC: 0,cTplV: 5,cTplB: 'cf',cK: \"\",fa: \"\\/post.json?__cf_chl_f_tk=JpJuv807Z4Ds.z9d1Bi179m1h73OBiSc6a7hbn5NyHE-1731603040-1.0.1.1-jTkhUiWg3YxoU0Q5fCTjPFti_8HxeCVCoT8pZr.tUzM\",md: \"bXOk0MFR6oojUYK.GOi6e1WMOb59tre7SyPFh4dzUNM-1731603040-1.2.1.1-aiyeJFSAd7xBJ2Y7ppJ1Awew1UfhCn7DTDg4UHZZSwwoagbu6NTHIGVmQi3lvPpi7LP3GuGujks8egX9pU4x7OF__GXqF1jthzQbhCOglEDr7VzSvV_eVURMVejikTKKUqvEeOkpsh4bwzmW8NiRr6M4YQTuaiKd3TaIP6hjMvSprhcl4nLToh88WFQ4rWy7HNy1E2cpPzoqeor8_SaZ9JVgFOLeSJrwqdJRVktaBD6.qx4ux763qeezdJw7vNFF9ZUV6JAimHYsP93xwzmsIrFnUJ9nbEc8D58Wx3AcFwWTP6ycEgLnVrG7imWe3D2OaivblAfszYBhyiF1UfljzaP1fRRYtRZCNDfyzIRZSrxZVfS9R37joM2vHYo6F0tWqs3d_aqxQDG6S0RkyFlWfA2wSgmEffuu3en4h8G4MuiiisHCeooT3mEbsj7swbCOa.jboFfEg8eNioFJwqqwc9hQfF4WrCy8WVFLye4sM1DtRMlpgx5pdAsxp.O50izgOcGMaOEDqNRWXS9YAuxSHrbJ0iGCSc7k0yPJRMC2RYWcA7ZWBkVZwIsulFSB3jXgvkS9a_aRT9f2x62nlesdtypgaL9WsLkiKfh2bznmc5czNF.yLVvbhBg.sUmNNQjtG2XcetSj9Q7hnxFcUHsMcb8DkeNsofmzp4h1wgxJ8uOosGPSTGEFGvlNstyMoBVp83dlDyMsn0w07VrLvmMZEkfo2iE7TglalBP3ia346waAg6O_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XgbETEvRGOuPTOwRyDOI07fVYZhclqbSpKtwqgNfQVvhCPS5XBXNeD6.HPvCXbV_iN64vX4YtEt9_RiOY6uF5wvCxCJSU2.DIsLgztRKggP_7PF2mK99YfiYIO4h4zSu45gFsBiZZ5_d.K16rD1QTixC3aqwxWxPJI_gz0NHhppjbpN6XiQDLRBhsazPrYasv4wrtXC3iWE9JL1sRZvxWf.Tj22jqe1UI4uWua9PsVwupZ_Ypn6lHbCBjqOhQ7_IE8r9CrhSyyWJ_bCufsUAbvsMEbXGE23aXfbf9Stpj9MJxXGLXXFPKLn_UOBEUuNCEKmP1ahXl7YVvv4LcIoyXLyU48lTHKP62UH7v_hLSxZyr5U8GKDs4Q0jM1Mek_Zp8eNGZXdI9rXZYEPuxCsuUzJrT.VFgD2Gbt9ET2Zg0dfA8U73VvKuN17TnB17.gYUSHO5tQV2dgIJVyKi2CroTige9uIa56._QTdZHJmnoUj4kU1xBsATShXbYsATj4R5BmJUtfbs0LatjLh0q.0YfXSDXfLnj.44tEJzw5lSHatg9Wm_cEALVwQ\"};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1?ray=8e28807cf9458b78';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, \"\\/post.json?__cf_chl_rt_tk=JpJuv807Z4Ds.z9d1Bi179m1h73OBiSc6a7hbn5NyHE-1731603040-1.0.1.1-jTkhUiWg3YxoU0Q5fCTjPFti_8HxeCVCoT8pZr.tUzM\" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html>"

Launcher

Containers (Docker, Kubernates, etc)

Sources

Konachan.com (NSFW), Konachan.net (SFW)

Versions

System:
OS: Linux 6.8 Alpine Linux

Binaries:
Node: 20.16.0
Yarn: 4.1.1

Koishi:
Core: 4.18.1
Console: 5.29.3

Additional context

No response

@Magic-riding Magic-riding added the 🐛 bug Something isn't working label Nov 14, 2024
@MaikoTan
Copy link
Member

It looks like konachan nsfw requires credentials (keypairs) for querying images, you could register an account and get the API keys from konachan and then enter into keypairs in the plugin configuration page.

看起来古奈酱nsfw在搜索图片时需求登录令牌(钥匙串),你可以从古奈酱注册一个账户并获得应用程序接口密钥,然后输入插件配置页面的钥匙串。

@Magic-riding
Copy link
Author

It looks like konachan nsfw requires credentials (keypairs) for querying images, you could register an account and get the API keys from konachan and then enter into keypairs in the plugin configuration page.

看起来古奈酱nsfw在搜索图片时需求登录令牌(钥匙串),你可以从古奈酱注册一个账户并获得应用程序接口密钥,然后输入插件配置页面的钥匙串。

Ok, I will try again after some time, because I failed to register konachan account when I tried to register.
When using konachan sfw gallery, the bot will send several pictures all at once. Have you tested this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants