OpenSubtitlesDownload icon indicating copy to clipboard operation
OpenSubtitlesDownload copied to clipboard

Urllib Error

Open KEM-Spain opened this issue 1 year ago • 12 comments

Enter your choice (0-30): 6 Urllib error ( 400 ) Bad Request An error occurred while connecting to the OpenSubtitles.com server

Using: OpenSubtitlesDownload.py / Version 6.0

After selecting a file to download the error occurs.

KEM-Spain avatar Jan 07 '24 19:01 KEM-Spain

Same error here (even before choosing a file to dl), using last version (6.2) in CLI (macOS and debian).

qtaped avatar Jan 21 '24 13:01 qtaped

Yeah. The site has messed things up. Fails from Kodi as well.

On Sun, Jan 21, 2024 at 2:43 PM Qntn @.***> wrote:

Same error here (even before choosing a file to dl), using last version (6.2) in CLI (macOS and debian).

— Reply to this email directly, view it on GitHub https://github.com/emericg/OpenSubtitlesDownload/issues/104#issuecomment-1902633832, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5YHVDEILX2XMRQ7YIR5B33YPULR5AVCNFSM6AAAAABBQQYSGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGYZTGOBTGI . You are receiving this because you authored the thread.Message ID: @.***>

KEM-Spain avatar Jan 22 '24 15:01 KEM-Spain

Urllib error ( 400 ) Bad Request

That's weird, do you have this error every time you use the script? I've never had this one, while testing on linux and macOS. Anything particular in your setups that could explain why it's behaving differently? VPN, weird Internet setup?

Yeah. The site has messed things up. Fails from Kodi as well.

Kodi is still using the "old" API so it will only work if you have a VIP account.

emericg avatar Jan 22 '24 15:01 emericg

Nothing unorthodox. No intermediate apps or hardware. Python is up to date on Ubuntu 23.10. Used to work flawlessly. Cloudflare?

On Mon, Jan 22, 2024 at 4:30 PM Emeric @.***> wrote:

Urllib error ( 400 ) Bad Request

That's weird, do you have this error every time you use the script? I've never had this one, while testing on linux and macOS. Anything particular in your setups that could explain why it's behaving differently? VPN, weird Internet setup?

Yeah. The site has messed things up. Fails from Kodi as well.

Kodi is still using the "old" API so it will only work if you have a VIP account.

— Reply to this email directly, view it on GitHub https://github.com/emericg/OpenSubtitlesDownload/issues/104#issuecomment-1904249112, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5YHVDBJK3JC2EFWKQ73RC3YP2AZFAVCNFSM6AAAAABBQQYSGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGI2DSMJRGI . You are receiving this because you authored the thread.Message ID: @.***>

KEM-Spain avatar Jan 22 '24 15:01 KEM-Spain

Tried from my laptop (macOS) or my server (debian), different locations, with or without custom dns, same error. VLC extension (VLSub) is working.

qtaped avatar Jan 22 '24 21:01 qtaped

Same error, after choosing subtitles. Debian oldstable.

setaur avatar Jan 27 '24 21:01 setaur

Same error, too.

Ubuntu 22.04.3 Python 3.10.12 urllib3 1.26.14

EDIT: And, BTW, it happens with this similar project, too.

097115 avatar Jan 31 '24 15:01 097115

Same error, it seems it happens when trying to login via https://api.opensubtitles.com/api/v1/login The data that is being sent (username and pass) seem to be correct, they are wrapped in b'{"username:"my_username", "password": "my_password"}' Not sure if that is expected, i dont have any chars that seem like invalid in json, just alphanumeric with some !*

Arch linux (approximately current) python 3.11.6 urllib3 1.26.18

pecosk avatar Jan 31 '24 23:01 pecosk

Looks like for me i was able to debug it .. the issue was, that i was using my email as username. When i changed that to actual username, it worked.

Hope it helps

pecosk avatar Feb 05 '24 17:02 pecosk

Looks like for me i was able to debug it .. the issue was, that i was using my email as username.

Yes it seems you are right, an invalid username/password causes that error. The GUI will output "login error" but the CLI will just output "Urllib error ( 400 ) Bad Request". I'll see if I can make the error message more helpful...

emericg avatar Feb 05 '24 18:02 emericg

Looks like for me i was able to debug it .. the issue was, that i was using my email as username. When i changed that to actual username, it worked.

Hope it helps

That was it! Working fine now, thanks!

@emericg and thanks for your work

qtaped avatar Feb 11 '24 20:02 qtaped

Works for me as well! Thanks 🙏

On Sun, Feb 11, 2024 at 9:57 PM Qntn @.***> wrote:

Looks like for me i was able to debug it .. the issue was, that i was using my email as username. When i changed that to actual username, it worked.

Hope it helps

That was it! Working fine now, thanks!

@emericg https://github.com/emericg and thanks for your work

— Reply to this email directly, view it on GitHub https://github.com/emericg/OpenSubtitlesDownload/issues/104#issuecomment-1937867445, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5YHVDFADLJWXYZJDJ5PNWDYTEWEDAVCNFSM6AAAAABBQQYSGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHA3DONBUGU . You are receiving this because you authored the thread.Message ID: @.***>

KEM-Spain avatar Feb 11 '24 21:02 KEM-Spain