Implement Net::HTTP to resolve rate limiting #280
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is all based on #267 (comment) and @ee3e's work.
This resolves all rate limiting issues without the need of any delays/sleeps.
I am not sure that the
http.finish()
line inget_raw_list_from_api
is in the correct place, so any code review would be helpful.Regardless, I thought I'd submit this to try to resolve several of the issues that have come up lately.
Legitimately all credit should go to @ee3e for their solution. This helped me download a ridiculously large backup without issue (452831 files.)
(Issues) Resolves #277, resolves #275, resolves #273, resolves #269, resolves #267
(Pull requests) Resolves #268, resolves #266, resolves #262 (at least according to comments)