yellowbluesky / PixivforMuzei3

Best Pixiv plugin for Muzei 3
GNU General Public License v3.0
177 stars 15 forks source link

fix 'exhausted all routes' exception #107

Closed Notsfsssf closed 4 years ago

Notsfsssf commented 4 years ago

很抱歉我刚才才看到你的邮件,我最近都在忙毕业的事情:( 出现这个问题可能是因为okhttp的版本,新版本去掉了‘greylist’的用法,所以导致这个方法失效了。所以我修改了之后,登录方法就能重新起作用了:) 这只是一个临时的修复方法,你需要在之后修改原先硬编码的dns地址分别对应‘www.pixiv.net’,'app-api.pixiv.net','oauth.secure.pixiv.net'。 我推荐使用仍未被GFW污染的dns 1.0.0.1来实时解析,找原来的方法硬编码也可以,只是需要吧上面提到的域名区分开来。 Google translate: I'm sorry that I just saw your email. I have been busy graduating recently. This problem may be due to the version of okhttp, the new version removes the usage of ‘greylist’, so this method is invalid. So after I modified it, the login method will work again This is just a temporary repair method, you need to modify the original hard-coded dns address later to correspond to ‘www.pixiv.net’,’app-api.pixiv.net','oauth.secure.pixiv.net'. I recommend using dns 1.0.0.1, which has not yet been contaminated by GFW, for real-time analysis. It is also possible to find the original method and hard-code it. Just need to distinguish the domain names mentioned above.

yellowbluesky commented 4 years ago

Hi there, no worries your reply wasn't slow at all, you got back to me in less than 24 hours! Congrats on your graduation too :D

Downgrading OkHttp to 4.2.2 appears to work.

Thanks for your pointers on what else I can do to have a permanent fix. Is this a problem your app is having too?

Notsfsssf commented 4 years ago

No, because I have not upgraded the version of okhttp3