z411 / trackma

Open multi-site list manager for Unix-like systems. (ex-wMAL)
https://z411.github.io/trackma
GNU General Public License v3.0
775 stars 81 forks source link

Anilist not Working (Cloudflare protection) #718

Closed uzuto closed 11 months ago

uzuto commented 11 months ago

Anilist is not working as they added cloudflare protection to their site. Log file:- trackma-log.txt

Screenshot_2023-10-15-23-19-57_1366x768

z411 commented 11 months ago

It's working for me... maybe you need to visit their website first?

uzuto commented 11 months ago

I did but it isn't working, lets wait for other responses for verification.

z411 commented 11 months ago

What if you try re-adding the account to verify again? I think this happened once to me...

uzuto commented 11 months ago

I tried re-adding after deleting entire ~/.config/trackma folder but the result's the same (Gives Error while refreshing user details) Could this perhaps be a DNS thing? (I have QuadDNS enabled from resolved if that matters, using zarpret as well)

FichteFoll commented 11 months ago

What happens when you open the main page in your browser? Do you see a cloudflare challenge? Trackma won't be able to do much here. You need to get CF to trust your host/IP.

uzuto commented 11 months ago

@FichteFoll It works flawlessly in the browser (although I do see challenge for the very first time after restarting the system)

FichteFoll commented 11 months ago

Is it still a problem in trackma after you have resolved the challenge?

uzuto commented 11 months ago

Yes

FichteFoll commented 11 months ago

Then I'm afraid you'll have to ask anilist mods (or a/the dev) on how to get yourself out of CF's challenge list. As I mentioned, I don't think there is much that trackma can do. My only remaining guess would be to use the same UserAgent as your browser for requests, but I would also not be surprised if CF didn't let that through.

uzuto commented 11 months ago

I will try looking into it will let you know if I sort it out. EDIT : Changing the user agent through libanilist.py did not work.

EDIT 2 : Found a thread explaining the issue https://anilist.co/forum/thread/68889 looks like a it's done to prevent a DDoS attack.

z411 commented 11 months ago

Thanks for looking into it. So it was an upstream issue. I don't think putting an API behind Cloudflare checks is a good idea; they should change try other techniques like rate limiting, but that's up to their team.

uzuto commented 11 months ago

Well, the only solution is waiting so it's probably safe to close this issue now.

EDIT: The Issue is now resolved.