Jump to content

Open Subtitles Error - Unauthorized


GrimReaper
Message added by GrimReaper,

Recommended Posts

eddfish0409
Posted

I am also getting the error, hope it gets sorted out soon.

Happy2Play
Posted
6 minutes ago, eddfish0409 said:

I am also getting the error, hope it gets sorted out soon.

Back to the same question as it may require context and server log as I am still able to search and download here.

Q-Droid
Posted

Mine has been working too for a day or so now. I haven't tried enough times to know if it's stable and consistent again but so far it's been okay.

 

eddfish0409
Posted

I can't even search for subtitles right now

Happy2Play
Posted
25 minutes ago, eddfish0409 said:

I can't even search for subtitles right now

Then I would think you have a different issue but will still require logs and specific example.  As NotAcceptable is in reference to Download not search.

eddfish0409
Posted

024-07-11 19:16:33.238 Info Server: http/1.1 Response 204 to ::1. Time: 0ms. POST http://localhost:8097/emby/DisplayPreferences/usersettings?userId=8830dbe63c4d47d78cfec16133c783e6&client=emby&X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=fda7b9d5-c0bb-41db-a902-8409f583992b&X-Emby-Client-Version=4.8.8.0&X-Emby-Token=x_secret3_x&X-Emby-Language=zh-cn&reqformat=json
2024-07-11 19:16:33.439 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2024-07-11 19:16:34.780 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: C:\Users\ysm19\AppData\Roaming\Emby-Server\system\EmbyServer.dll
    Operating system: Microsoft Windows 10.0.22621
    Framework: .NET 6.0.30
    OS/Process: x64/x64
    Runtime: C:/Users/ysm19/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: C:\Users\ysm19\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\ysm19\AppData\Roaming\Emby-Server\system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
       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.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.<>c__DisplayClass17_0.<<SearchSubtitles>b__3>d.MoveNext()
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()

Posted
57 minutes ago, eddfish0409 said:

024-07-11 19:16:33.238 Info Server: http/1.1 Response 204 to ::1. Time: 0ms. POST http://localhost:8097/emby/DisplayPreferences/usersettings?userId=8830dbe63c4d47d78cfec16133c783e6&client=emby&X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=fda7b9d5-c0bb-41db-a902-8409f583992b&X-Emby-Client-Version=4.8.8.0&X-Emby-Token=x_secret3_x&X-Emby-Language=zh-cn&reqformat=json
2024-07-11 19:16:33.439 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2024-07-11 19:16:34.780 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: C:\Users\ysm19\AppData\Roaming\Emby-Server\system\EmbyServer.dll
    Operating system: Microsoft Windows 10.0.22621
    Framework: .NET 6.0.30
    OS/Process: x64/x64
    Runtime: C:/Users/ysm19/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: C:\Users\ysm19\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\ysm19\AppData\Roaming\Emby-Server\system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
       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.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.<>c__DisplayClass17_0.<<SearchSubtitles>b__3>d.MoveNext()
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()

This is the same error that I'm seeing in my logs. 

Noodlewasser
Posted

@eddfish0409@Ren34You should make sure that you have set the correct login credentials in the OpenSubtitles plugin. If you still have issues, I suggest you open a separate topic for it.

  • Agree 1
Posted
17 minutes ago, Noodlewasser said:

@eddfish0409@Ren34You should make sure that you have set the correct login credentials in the OpenSubtitles plugin. If you still have issues, I suggest you open a separate topic for it.

I just triple checked everything and re-entered my credentials just to make sure. Everything is correct.  I can still log into OpenSubtitles just fine on the website. 

Posted
39 minutes ago, Ren34 said:

I just triple checked everything and re-entered my credentials just to make sure. Everything is correct.  I can still log into OpenSubtitles just fine on the website. 

2024-07-11 09:04:38.728 Info HttpClient: GET https://vip-api.opensubtitles.com/api/v1/subtitles?episode_number=1&imdb_id=14452776&languages=en&moviehash=8bfffe7ba0632530&query=The.Bear.S03E01.Tomorrow.1080p.WEBRip.10bit.DDP5.1.x265-HODL.mkv&season_number=3
2024-07-11 09:04:39.084 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.9.0.26
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.1.79-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Fri Mar 29 13:34:03 PDT 2024
    OS/Process: x64/x64
    Framework: .NET 8.0.6
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: /config
    Application path: /system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
       at OpenSubtitles.OpenSubtitleComDownloader.SearchSubtitlesAsync(OpenSubtitleQuery[] queries, 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.<>c__DisplayClass17_0.<<SearchSubtitles>b__3>d.MoveNext()
    Source: OpenSubtitles
    TargetSite: Void MoveNext()

 

Here's the snippet from my log. For reference, over the past few days I was also getting intermittent "Unacceptable" errors. This new "Unauthorized" error just started last night. 

Posted

Sorry for all of the posts. Another data point. Just for testing purposes I tried downgrading the OpenSubtitles plugin and then removed my credentials from it. I can now download subtitles with no problem. There seems to be a mismatch on the server startup between /system/plugins and /config/plugins.  Logs attached.  Any clue what's going on?  I've tried restarting the server from within the app as well as the docker container itself.

2024-07-11 09:49:27.140 Info App: File /config/plugins/OpenSubtitles.dll has version 1.0.56.0
2024-07-11 09:49:27.140 Info App: File /system/plugins/OpenSubtitles.dll has version 1.0.54.0

embyserver (2) (1).txt

mooncaptain
Posted

@Ren34I have this problem but downgrading to version 1.0.54.0 still fails in the same way.

 

Posted
3 hours ago, eddfish0409 said:

024-07-11 19:16:33.238 Info Server: http/1.1 Response 204 to ::1. Time: 0ms. POST http://localhost:8097/emby/DisplayPreferences/usersettings?userId=8830dbe63c4d47d78cfec16133c783e6&client=emby&X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=fda7b9d5-c0bb-41db-a902-8409f583992b&X-Emby-Client-Version=4.8.8.0&X-Emby-Token=x_secret3_x&X-Emby-Language=zh-cn&reqformat=json
2024-07-11 19:16:33.439 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login
2024-07-11 19:16:34.780 Error SubtitleManager: Error searching for subtitles on Open Subtitles
    *** Error Report ***
    Version: 4.8.8.0
    Command line: C:\Users\ysm19\AppData\Roaming\Emby-Server\system\EmbyServer.dll
    Operating system: Microsoft Windows 10.0.22621
    Framework: .NET 6.0.30
    OS/Process: x64/x64
    Runtime: C:/Users/ysm19/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: C:\Users\ysm19\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\ysm19\AppData\Roaming\Emby-Server\system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
       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.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.<>c__DisplayClass17_0.<<SearchSubtitles>b__3>d.MoveNext()
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()

Hi, please attach the complete Emby server log file. Thanks.

mooncaptain
Posted

here's my log file from my most recent attempt. I did a reboot just before the subtitle download request.

embyserver.txt

Posted
3 hours ago, mooncaptain said:

here's my log file from my most recent attempt. I did a reboot just before the subtitle download request.

embyserver.txt 35.53 kB · 2 downloads

HI, please try updating to the latest version of the Emby open subtitles plugin, then restart the server, reconfigure your open subtitles credentials, and see how things compare. Thanks.

mooncaptain
Posted

Hi Luke,

It didn't work after doing following.

  • deleted credentials for opensubtitles
  • uninstalled plugin
  • rebooted
  • installed latest version [Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.57.0]
  • reboot
  • set credentials - also tested them on the website opensubtitles.com

Attempted to download a subtitle I know is available.

Didn't work.

scanning the latest log I noticed this:

Quote
2024-07-11 15:15:55.687 Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.57.0
2024-07-11 15:15:55.687 Info App: File /opt/emby-server/system/plugins/OpenSubtitles.dll has version 1.0.54.0

Is my installation messed up. this is a fairly new installation since I moved from one server to another a few months ago - so it should be pretty clean.

Should I copy the newest version to the /opt folder and see what happens?

 

 

 

Posted
1 minute ago, mooncaptain said:

Hi Luke,

It didn't work after doing following.

  • deleted credentials for opensubtitles
  • uninstalled plugin
  • rebooted
  • installed latest version [Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.57.0]
  • reboot
  • set credentials - also tested them on the website opensubtitles.com

Attempted to download a subtitle I know is available.

Didn't work.

scanning the latest log I noticed this:

Is my installation messed up. this is a fairly new installation since I moved from one server to another a few months ago - so it should be pretty clean.

Should I copy the newest version to the /opt folder and see what happens?

 

 

 

HI there, just install as normal using the Emby plugin catalog. 

Happy2Play
Posted
1 minute ago, mooncaptain said:

scanning the latest log I noticed this:

Quote
2024-07-11 15:15:55.687 Info App: File /var/lib/emby/plugins/OpenSubtitles.dll has version 1.0.57.0
2024-07-11 15:15:55.687 Info App: File /opt/emby-server/system/plugins/OpenSubtitles.dll has version 1.0.54.0

Is my installation messed up. this is a fairly new installation since I moved from one server to another a few months ago - so it should be pretty clean.

Should I copy the newest version to the /opt folder and see what happens?

No this is normal as system comes with default plugins, updates will not update system/plugins only your emby/plugins.

Posted

Anyway please attach the emby server log once you are working with the updated version. Thanks.

mooncaptain
Posted

I just reinstalled 4.8.8.0 to make sure that there were no corrupt files - anyway - I discovered that at some point in the past I changed ownership of the /opt/ and /var/lib locations to root. I quickly updated systemctl files to use root and emby restarted OK.

Is it possible that running as root is causing the unauthorized problem?

MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
	   at OpenSubtitles.OpenSubtitleComDownloader.SearchSubtitlesAsync(OpenSubtitleQuery[] queries, 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.<>c__DisplayClass17_0.<<SearchSubtitles>b__3>d.MoveNext()

 

Happy2Play
Posted (edited)

Minus the api not liking username or password I am not sure here.

2024-07-11 15:44:50.366 Info SecurityManager: Not registered for MBSupporter
2024-07-11 15:44:50.367 Info OpenSubtitleComDownloader: Logging into OpenSubtitles-Emby-f
2024-07-11 15:44:50.619 Info HttpClient: POST https://api.opensubtitles.com/api/v1/login

                                      MediaBrowser.Model.Net.HttpException: Unauthorized

All other topics point to an issue with opensubtitles.com issue.

Edited by Happy2Play
mooncaptain
Posted

I tried shortening and simplifying my password - no special characters - didn't help.

 

I guess we're waiting on opensubtitles at this point.

Posted

I can start downloading subs again if I delete my credentials and restart the server.  Does it default back to the non-vip API at that point?

  • Agree 1
Posted
5 minutes ago, mooncaptain said:

I tried shortening and simplifying my password - no special characters - didn't help.

 

I guess we're waiting on opensubtitles at this point.

OK please try this build of the plugin and let me know if it resolves your issue:

OpenSubtitles.zip

Thanks.

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...