Jump to content

opensubtitles filling logs


Go to solution Solved by vaise,

Recommended Posts

Posted

My open subs is configured correctly.  Correct user and password (tested) on opensubtitles.com (not the old org).

But the log is filled (all day) with the below.

InnerException: System.Net.Http.HttpRequestException: Cannot assign requested address (api.opensubtitles.com:443)

 

2024-07-26 12:07:15.891 Error HttpClient: Error getting response from https://api.opensubtitles.com/api/v1/login
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Cannot assign requested address (api.opensubtitles.com:443)
     ---> System.Net.Http.HttpRequestException: Cannot assign requested address (api.opensubtitles.com:443)
     ---> System.Net.Sockets.SocketException (99): Cannot assign requested address
       at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
       at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
       at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
       --- End of inner exception stack trace ---
       at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
       at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
       at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
       --- End of inner exception stack trace ---
    Source: 
    TargetSite: 
    No Stack Trace Available
    InnerException: System.Net.Http.HttpRequestException: Cannot assign requested address (api.opensubtitles.com:443)
    Source: System.Net.Http
    TargetSite: Void MoveNext()
       at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
       at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
       at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
       at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
    InnerException: System.Net.Sockets.SocketException: Cannot assign requested address
    Source: System.Net.Sockets
    TargetSite: Void ThrowException(System.Net.Sockets.SocketError, System.Threading.CancellationToken)
       at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
       at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
       at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
 

Happy2Play
Posted
3 minutes ago, vaise said:

am I correct that this is a paid for API now - 

https://www.opensubtitles.com/en/consumers

Not entirely as there is a Emby Premiere factor as there are 4 classes of users.

Non-Premiere
Premiere
Non-Premiere - OS VIP
Premiere - OS VIP

Don't think this specific error has been reported before.

Cannot assign requested address (api.opensubtitles.com:443)

 

Posted

If it matters, been a lifetime emby premier for ever.

 

I checked and retyped (copy/pasted) the passworks to the emby console, and also in the plugin, restarted emby.

Manually kicked off a subs download sched task and watch the emby log go crazy with -

 

2024-07-26 12:23:41.894 Info OpenSubtitles: Logging into OpenSubtitles-Emby
2024-07-26 12:23:42.145 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2024-07-26 12:23:42.146 Error OpenSubtitles: Error from https://api.opensubtitles.com/api/v1/login
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Cancelling connection to https://api.opensubtitles.com/api/v1/login due to a previous timeout.
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
       at OpenSubtitles.OpenSubtitleComDownloader.GetResponse(HttpRequestOptions requestOptions, String httpMethod)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-07-26 12:23:42.149 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Cancelling connection to https://api.opensubtitles.com/api/v1/login due to a previous timeout.
       at OpenSubtitles.OpenSubtitleComDownloader.GetResponse(HttpRequestOptions requestOptions, String httpMethod)
       at OpenSubtitles.OpenSubtitleComDownloader.Login(OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.SearchInternal(SubtitleSearchRequest request, Boolean useFilename, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.Search(SubtitleSearchRequest request, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at Emby.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-07-26 12:23:42.155 Info OpenSubtitles: Logging into OpenSubtitles-Emby
2024-07-26 12:23:42.373 Info Server: http/1.1 POST http://‌‍‍192.168.1.201‌:8096/emby/ScheduledTasks/Running/0ac9e449d14bbda75dc6e7ea6f830b9c/Delete?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=319dfcd0-9a0f-459c-9e1d-b8930df39d51&X-Emby-Client-Version=4.8.8.0&X-Emby-Token=‌f88ec18025e74d03bab576ef6c2e473a‌&X-Emby-Language=en-gb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
2024-07-26 12:23:42.375 Info TaskManager: Attempting to cancel Scheduled Task Download subtitles
2024-07-26 12:23:42.376 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    System.Threading.Tasks.TaskCanceledException: System.Threading.Tasks.TaskCanceledException: A task was canceled.
       at OpenSubtitles.OpenSubtitleComDownloader.Login(OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.SearchInternal(SubtitleSearchRequest request, Boolean useFilename, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.Search(SubtitleSearchRequest request, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at Emby.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
    Source: System.Private.CoreLib
    TargetSite: Void ThrowForNonSuccess(System.Threading.Tasks.Task)
 

 

 

Happy2Play
Posted
4 minutes ago, vaise said:

If it matters, been a lifetime emby premier for ever.

 

I checked and retyped (copy/pasted) the passworks to the emby console, and also in the plugin, restarted emby.

Manually kicked off a subs download sched task and watch the emby log go crazy with -

 

2024-07-26 12:23:41.894 Info OpenSubtitles: Logging into OpenSubtitles-Emby
2024-07-26 12:23:42.145 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2024-07-26 12:23:42.146 Error OpenSubtitles: Error from https://api.opensubtitles.com/api/v1/login
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Cancelling connection to https://api.opensubtitles.com/api/v1/login due to a previous timeout.
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
       at OpenSubtitles.OpenSubtitleComDownloader.GetResponse(HttpRequestOptions requestOptions, String httpMethod)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-07-26 12:23:42.149 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Cancelling connection to https://api.opensubtitles.com/api/v1/login due to a previous timeout.
       at OpenSubtitles.OpenSubtitleComDownloader.GetResponse(HttpRequestOptions requestOptions, String httpMethod)
       at OpenSubtitles.OpenSubtitleComDownloader.Login(OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.SearchInternal(SubtitleSearchRequest request, Boolean useFilename, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.Search(SubtitleSearchRequest request, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at Emby.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-07-26 12:23:42.155 Info OpenSubtitles: Logging into OpenSubtitles-Emby
2024-07-26 12:23:42.373 Info Server: http/1.1 POST http://‌‍‍192.168.1.201‌:8096/emby/ScheduledTasks/Running/0ac9e449d14bbda75dc6e7ea6f830b9c/Delete?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=319dfcd0-9a0f-459c-9e1d-b8930df39d51&X-Emby-Client-Version=4.8.8.0&X-Emby-Token=‌f88ec18025e74d03bab576ef6c2e473a‌&X-Emby-Language=en-gb. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
2024-07-26 12:23:42.375 Info TaskManager: Attempting to cancel Scheduled Task Download subtitles
2024-07-26 12:23:42.376 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.74-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    System.Threading.Tasks.TaskCanceledException: System.Threading.Tasks.TaskCanceledException: A task was canceled.
       at OpenSubtitles.OpenSubtitleComDownloader.Login(OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.SearchInternal(SubtitleSearchRequest request, Boolean useFilename, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at OpenSubtitles.OpenSubtitleComDownloader.Search(SubtitleSearchRequest request, OpenSubtitleOptions options, CancellationToken cancellationToken)
       at Emby.Providers.Subtitles.SubtitleManager.SearchSubtitles(SubtitleSearchRequest request, CancellationToken cancellationToken)
    Source: System.Private.CoreLib
    TargetSite: Void ThrowForNonSuccess(System.Threading.Tasks.Task)
 

 

 

This suggests something blocking the connection as it references Timed out.

So the next question will be are other external connections timing out?

Posted

everything else is working fine.

I can see people watching emby, I have tested from phone.

I have a load of other things running on my systems also - all connecting out fine.

Happy2Play
Posted
Just now, vaise said:

everything else is working fine.

I can see people watching emby, I have tested from phone.

I have a load of other things running on my systems also - all connecting out fine.

Are all communications to mb3admin, TVDB, MovieDB, OMDB or other external provider sites failing as log snippets do not show the big picture.

Usually pointing to VPN, DNS, ipv6, or security software blocking external connections.

Posted

aha - you have given me something to go on - I used metadata manager to do a few updates, and in the logs, I can see the same sort of thing - 

Cannot assign requested address (private.omdbapi.com:443)

So......  whats changed - two days ago I changed my DNS on my router to use encrypted DNS targeting cloudflare-family servers.......

strangely however - on my PC in the browsers, I can contact these sites fine - and  we are all using the same router supplied encrypted dns

I really want to keep using the encrypted DNS however so I will work backwards slowly.

Will report back

  • Like 1
  • Solution
Posted

OK - Testing done - changing to the encrypted normal Cloudflare DNS makes these emby api's work........ but them a google search for 'pronhub' produces results - which is the sort of thing I wanted to stop.

To confirm, swapped it back to cloudflare family - and busted again.

As I have vlans, I will leave the secure doh search over normal cloudflare as the default (so all servers are encrypted dns), and then change the users vlan to dgo direct to 1.1.1.3 and 1.0.0.3 for now.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...