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

Couldn't fetch torrent: Unknown Error (429) #141

Open
Jaxel opened this issue Jun 22, 2024 · 2 comments
Open

Couldn't fetch torrent: Unknown Error (429) #141

Jaxel opened this issue Jun 22, 2024 · 2 comments

Comments

@Jaxel
Copy link

Jaxel commented Jun 22, 2024

I use transmission-rss to pull One Pace torrents... I haven't been able to pull the most recent two episodes:

2024-04-27 11:40:55 (info) transmission-rss 1.2.3
2024-04-27 11:40:55 (debug) {"feeds"=>[{"url"=>"https://nyaa.si/?page=rss&c=1_2&f=1&q=one+pace+mkv", "seen_by_guid"=>true}], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"192.168.1.5", "port"=>9091, "tls"=>false, "rpc_path"=>"/transmission/rpc"}, "login"=>{"username"=>"----------", "password"=>"-----------------------"}, "log"=>{"target"=>"/etc/transmission-logs.txt", "level"=>"debug"}, "fork"=>false, "single"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>"/etc/transmission-seen.txt"}
2024-04-27 11:40:55 (debug) no privilege dropping, running as user root
2024-04-27 11:40:55 (debug) 98 uris from seenfile
2024-04-27 11:40:55 (debug) pid 8
2024-04-27 11:40:55 (debug) aggregator start
2024-06-22 02:13:17 (debug) aggregate https://nyaa.si/?page=rss&c=1_2&f=1&q=one+pace+mkv
2024-06-22 02:13:17 (debug) on_new_item event https://nyaa.si/download/1836487.torrent
2024-06-22 02:13:17 (debug) request 192.168.1.5:9091
2024-06-22 02:13:17 (debug) got session id -----------------------------------------------------
2024-06-22 02:13:18 (debug) request 192.168.1.5:9091
2024-06-22 02:13:19 (debug) torrent-add result: Couldn't fetch torrent: Unknown Error (429)
2024-06-22 02:13:19 (debug) on_new_item event https://nyaa.si/download/1836486.torrent
2024-06-22 02:13:19 (debug) request 192.168.1.5:9091
2024-06-22 02:13:19 (debug) got session id -----------------------------------------------------
2024-06-22 02:13:19 (debug) request 192.168.1.5:9091
2024-06-22 02:13:19 (debug) torrent-add result: Couldn't fetch torrent: Unknown Error (429)

What causes Error 429?

@Liboicl
Copy link

Liboicl commented Jan 24, 2025

Error 429 is "Too Many Requests".

I was hitting the error as well. I made some edits to the code to not add those torrents to the seen list and to wait 2 seconds in between each request.

Since it seems the code base is being rewritten in Go, I'm not sure if a pull request would be considered. I might polish it up a bit and allow for user-configurable delays if that's of interest to anyone.

@nning
Copy link
Owner

nning commented Jan 25, 2025

Hi!

Thanks for the report and thanks for the solution proposal!

@Liboicl please send a PR!

I am using the Go version now myself but I do not have a plan to replace the Ruby version. So your patch could be of value for others for a while.

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

No branches or pull requests

3 participants