Page 1 of 1
Cannot login to OpenSubtitles (error 429)
Posted: 16 Dec 2024, 19:11
by redlukas
Running filebot 5.1.6
Code: Select all
$ filebot -script fn:configure
Enter OpenSubtitles username: [email protected]
Enter OpenSubtitles password: heregoesmypassword
Store user preferences to [User Preferences: /home/rl/FileBot_5.1.6-portable/data/1000/prefs.properties at /home/rl/FileBot_5.1.6-portable/data/1000/prefs.properties]
Set OpenSubtitles login details
Checking... https://api.opensubtitles.com/api/v1/login [429 Client Error 429]
Abort (×_×)
The same error occurs when I try to login on using the GUI (has been happening for at least a few months, but I have barely used Filebot in this period).
The login details are correct, I have used them to login in opensubtitles.com via the browser.
I have only checked with the cable connection, the only one I have. I am not using a VPN or anything similar.
Thanks!
Re: Cannot login to OpenSubtitles (error 429)
Posted: 17 Dec 2024, 05:58
by rednoah
429 Too Many Requests means the OpenSubtitles API is rate limiting you. Maybe it'll work again if you try again after a day or two. Maybe someone else with the same public IP is abusing the API. Could by anything.

OpenSubtitles support may be able to tell you why your IP is being blocked.

You could try to open a hotspot on your phone and then access the internet from a different IP that way.
Re: Cannot login to OpenSubtitles (error 429)
Posted: 18 Dec 2024, 16:39
by Leokosta
i have the same error. Using version 4.7.9 no error. Version 5.1.6 a get the error.
I solved by opening the Powershell and typing:
Shell: Select all
filebot -script fn:properties --def net.filebot.WebServices.OpenSubtitles.v2=true
Re: Cannot login to OpenSubtitles (error 429)
Posted: 18 Dec 2024, 17:57
by rednoah
You can switch between the new REST API and old XML-RPC API if one happens to work better for you than the other. They run on different servers and would thus likely have different unrelated rate limits. The old XML-RPC API may get shut down permanently in the not too distant future though. That's up the OpenSubtitles maintainers.
OpenSubtitles REST API › Configure FileBot to use the old OpenSubtitles XML-RPC API

Note that the
net.filebot.WebServices.OpenSubtitles.v2 settings has no effect if you're using
FileBot 5.1.6 so the
429 Too Many Requests issue has likely resolved itself as would be expected from a temporary rate limit.
Re: Cannot login to OpenSubtitles (error 429)
Posted: 18 Dec 2024, 18:33
by Leokosta
Thanks for answering. I am using 5.1.6 , and have this problem for weeks now. Just after I input the command, it was resolved. I tested also on portable 4.7.9, was not having issues. Not sure why the command solved the issue, since it has no effect on 5.1.6. It would have been a big coincidence if right after the command, the problem fixed itself.
Re: Cannot login to OpenSubtitles (error 429)
Posted: 18 Dec 2024, 19:28
by rednoah

4.7.9 uses the XML-RPC API.

5.1.6 uses the REST API by default. The REST API is giving you the
429 Too Many Requests response.

You could set / unset
net.filebot.WebServices.OpenSubtitles.v2 to confirm that that setting indeed makes a difference or not:
Shell: Select all
filebot -script fn:properties --def net.filebot.WebServices.OpenSubtitles.v2=

You can set / unset
net.filebot.WebServices.OpenSubtitles.v1 to force 5.1.6 to use the XML-RPC or the REST API, whichever works best for you:
Shell: Select all
filebot -script fn:properties --def net.filebot.WebServices.OpenSubtitles.v1=true
Re: Cannot login to OpenSubtitles (error 429)
Posted: 18 Dec 2024, 20:00
by Leokosta
Tested here. Both are working, 5.1.6 and 4.7.9 . Thank you