jellyfin / jellyfin-plugin-opensubtitles

https://jellyfin.org
GNU General Public License v3.0
131 stars 27 forks source link

API rate limit exceeded #112

Open uumas opened 1 year ago

uumas commented 1 year ago

I'm getting the following error a lot when automatically downloading subtitles (metadata refresh). It seems to be making too many requests within a short time as it succeeds again for a bit within half a minute of the error occuring. Then it errors again.

[20:11:59] [ERR] [158] Jellyfin.Plugin.OpenSubtitles.OpenSubtitleDownloader: Invalid response: TooManyRequests - {
  "message":"API rate limit exceeded"
}

Using a VIP account, same result with the default and custom API keys. Plugin version 18.0.0 from the stable repo.

MBR-0001 commented 1 year ago

Are you running multiple servers/instances of jellyfin on the same IP? (or use a shared IP?) The only way I could get TooManyRequests is by searching for subtitles from 4-5 instances at the same time

uumas commented 1 year ago

This is a shared server so it is technically possible that someone else would be hammering their API at the same time but I find it unlikely that they would be doing it constantly. This happens both with the full library of hundreds of episodes and a single season of 20 with two languages.

MBR-0001 commented 1 year ago

Could you temporarily enable debug logging (instructions), run the task again and post the logs here?