-
Notifications
You must be signed in to change notification settings - Fork 81
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
Encountering connection timed out errors from Kemono after running this #174
Comments
are you using shared proxies? i didn't encounter this issue. |
I don't think so. Maybe my ISP is doing it? If so I never heard of such a thing. Have you downloaded an entire user's post history, that's what caused it for me. The first several posts were fine, but after a while, the error occurred. |
I've downloaded hundreds of post and never have this issue... |
@L4cache I got it again, it started with a bunch of 403 errors. I think it might be downloading images of a single post too fast? I added timeout between posts of 5 seconds, but the error started right after the first post download. There isn't a parameter option to add wait time between image downloads of a post. I added the code to see if it fixes it, but it seems to lock you out of the website for a few hours every time it happens, so it will take a while to verify. |
I don't know 100% what is causing the issue, but this is my best guess: Due to kemono.party server issues, some images may show on a post as downloadable but throw an error when you try to download them (I have verified this sometimes happen on the browser as well when I clicked on the attachments and I get some server error). And as the code is written now, the program immediately tries to download the next image right after a failed attempt, which causes a rapid succession of GET requests as each download attempt fails. Currently there is no wait time between these downloads, since the program just returns from the download attempt to download the next file. An example of the return statement in the code during a request error: Line 461 in 5bfab2e
If a post has many images, these instant attempts submit GET requests as fast as your computer can execute for-loops, which is bad and seems to be triggering some rate-limit or DDOS protection that blocks the client for several hours from accessing kemono.party servers. I added
I also added a Here is the PR: |
Description
Used this tool again just today and it caused a bunch of 403 errors at first and failed to download file errors. Now I tried again and it caused connection timed out errors.
This is the error when I tried to download again:
Same error "connection timed out" error when visiting the website in any browser. I have verified that the website isn't down by checking it in one of those "is a website down?" websites.
Is this due to some new rate limiting? If so, default timeout and retry values should be reconfigured since otherwise downloading a bunch of any user's stuff will cause you to be locked out from Kemono servers for I don't know how long. Maybe there is a dynamic way to do this? But I am not familiar with Kemono server APIs.
Service, User ID, Post ID
Doesn't matter what Service, User ID, or Post ID since connection is timed out trying to visit even the website home page.
The text was updated successfully, but these errors were encountered: