Skip to content

TorrentAPI new limits/changes #5206

@rarbg

Description

@rarbg

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe

--

Describe the solution you'd like

No clue who's responsible for Sonarr right now but @bakerboy448 said to open an issue so here is it

To fix Sonarr potential issues please implement the following in your torrentapi code :

  1. Increase the sleep between requests x2
  2. if the API returns 429 retry in 2 minutes , 429 returns a custom json with rate_limit 1 - ignore it
  3. if the API returns 520 retry in 3 minutes
  4. if the API returns 200 with a json that contains rate_limit 1 retry in 5 minutes

That will cover all cases. Back-off is unnecessary if it really waits for 6 hours. I never experienced a back-off period in my Sonarr so far tho.

Describe alternatives you've considered

--

Anything else?

--

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions