OpenSub Upload feature is unreliable

Support for Windows users
Post Reply
User avatar
Nhoise
Power User
Posts: 17
Joined: 08 Feb 2015, 20:15

OpenSub Upload feature is unreliable

Post by Nhoise »

First of all, i'm not sure on who's side this error is. So if you'd rather have me post this over on the OpenSub forums i'll gladly do so.
I've tried the OpenSub upload plugin Nikse made for SubtitleEdit and it seemed to work fine. Though Filebot's is a lot better at recognizing what's what.
--
I'm using OpenSub a lot and frequently edit my own subtitles for releases which are not available yet on OpenSub.
But when trying to upload them via Filebot's upload feature it's often just stuck on Uploading... for 5 minutes and then returns an upload failed.
And as the uploading is all going through the GUI i'm not sure how to get logs to see what's going wrong.
The only way is to keep trying and eventually it'll upload properly.

I've used both the installer and portable versions of 4.6 but it makes no difference.
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OpenSub Upload feature is unreliable

Post by rednoah »

This sounds more like an OpenSubtitles API issue, like servers being overloaded and slow.

You can track and debug all the HTTP requests using Fiddler. So you will see if the network request times out or not, and the request/response text if it's working.

@see viewtopic.php?f=10&t=3002
:idea: Please read the FAQ and How to Request Help.
User avatar
Nhoise
Power User
Posts: 17
Joined: 08 Feb 2015, 20:15

Re: OpenSub Upload feature is unreliable

Post by Nhoise »

I have to be honest, i'm not quite sure what i'm looking at in Fiddler. A bit too techy for me.

But i'm seeing this pop up in the log whenever i have Filebot do an upload request. Not sure if relevant.

Code: Select all

SecureClientPipeDirect failed: System.Security.Authentication.AuthenticationException A call to SSPI failed, see inner exception.
Warning: ClientHello record was 265 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. 
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OpenSub Upload feature is unreliable

Post by rednoah »

If you use the latest beta release you can switch to HTTP (unencrypted, easier to debug) instead of the default HTTPS (encrypted)
https://sourceforge.net/projects/filebo ... ebot/HEAD/


Force HTTP by adding this setting in the *.ini options file:

Code: Select all

"-Dnet.filebot.OpenSubtitlesXmlRpc.url=http://api.opensubtitles.org/xml-rpc"
:idea: Please read the FAQ and How to Request Help.
User avatar
Nhoise
Power User
Posts: 17
Joined: 08 Feb 2015, 20:15

Re: OpenSub Upload feature is unreliable

Post by Nhoise »

I can just run filebot-4.6.1-r3202-rsu.jar and add that "-dnet..." line in the .ini located in my install directory?
edit: probably need to run the Filebot.jar not the -rsu

*edit2: Fiddler isn't picking up any traffic when i run FileBot.jar from my desktop
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OpenSub Upload feature is unreliable

Post by rednoah »

1.
* Replace the FileBot.jar with the latest revision.
* Replace filebot.platform.launcher.l4j.ini with https://raw.githubusercontent.com/svn2g ... er.l4j.ini
* Launch filebot.platform.launcher.exe

2.
Running the jar doesn't set any options, and if -Djava.net.useSystemProxies=true isn't sent, then Fiddler doesn't get to proxy any requests.
:idea: Please read the FAQ and How to Request Help.
User avatar
Nhoise
Power User
Posts: 17
Joined: 08 Feb 2015, 20:15

Re: OpenSub Upload feature is unreliable

Post by Nhoise »

Alright, got it. It's working now.
Though running the "FBplatform.exe" doesn't give much info. Running the FileBot.exe shows a lot more info in Fiddler.

I saw it's throwing 503 errors from the OpenSub API.

Code: Select all

<h1>Error 503 Backend fetch failed</h1>
    <h3>Guru Meditation:</h3>
    <p>XID: 550059373</p>
    <p>Varnish cache server</p>
edit: I see 3 different attempts to connect to the OS API before it'll give the upload failed. Then it does the LogOut
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OpenSub Upload feature is unreliable

Post by rednoah »

That means that the OpenSubtitles API service is currently broken.

Since OpenSubtitles API is generally unstable and known to drop requests, so FileBot will automatically retry all requests 3 times before it will eventually give up.
:idea: Please read the FAQ and How to Request Help.
User avatar
Nhoise
Power User
Posts: 17
Joined: 08 Feb 2015, 20:15

Re: OpenSub Upload feature is unreliable

Post by Nhoise »

But downloading subtitles is fine, both via hash lookup and name search. Isn't that going through the API as well?
Either way, i'll ask what's up on the forums.
User avatar
rednoah
The Source
Posts: 22980
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: OpenSub Upload feature is unreliable

Post by rednoah »

Yes. It's perfectly conceivable that only the subtitle upload code is broken. LogIn/LogOut use the same API server and that seems to work. Best to report that at http://forum.opensubtitles.org/viewforum.php?f=8
:idea: Please read the FAQ and How to Request Help.
User avatar
Nhoise
Power User
Posts: 17
Joined: 08 Feb 2015, 20:15

Re: OpenSub Upload feature is unreliable

Post by Nhoise »

Just made a thread there. Thanks for the help noah.
Post Reply