Question about API - 502/503 errors

Hello,

I’m the creator of the Stremio Community Subtitles add-on, which integrates with the OpenSubtitles API:

As with all Stremio add-ons, it needs to work server-side. Due to the API rate limits (e.g. 5 requests per second per IP), I decided to require users to provide their personal API keys, hoping this would help avoid hitting the limits—even if all requests are made from the same IP.

Originally, the add-on downloaded subtitles to serve them directly to users, but I noticed many 503 errors in the logs related to this. Therefore, I switched to using HTTP 302 redirects to serve the original subtitle URLs instead.

However, those direct links also occasionally return 503/502 errors. I could implement some retry logic on the server side, but recently all requests from my server to subtitle downloads have consistently returned 503 errors.

Is this expected behavior, or is there an issue with the OpenSubtitles API at the moment?

so first, for the API key, no, please don’t, it won’t solve your issue and will cost us thousands of unused keys in the admin, please edit your system to use one single API key, the rate limit is set per IP, and do not publish your app as it is. contact us directly to talk about it, we’ll find another way to solve the rate limiting issue.

then for the downloads, you can’t store the file URL’s as they are limited in time, they only work between 6 and 12 hours depending on the caching.

some files may return 503 at the moment because we are in the middle of a small server crisis and have a lot of errors at the moment - hopefully this will be fixed soon.

Error telkens als ik inlog voor ondertitels
DataTables warning: table id=ajax_subtitles_datatable_movie - Ajax error. For more information about this error, please see 7. Warning: Ajax error

Thanks for the reply. How can I reach you? I sent a message through the official contact form, but I don’t know if that is enough or if it reached you. I remember I used that before as well to ask about those “private” api keys but no one answered me.