Jump to content

Working with forward proxy


Recommended Posts

Posted

Is there any way to let emby server to pull metadata using an HTTP proxy? I think I really need this.

 

 

Posted

Hi there, can you please provide a little more information? Is there an issue with the existing metadata retrieval?

Posted

I live in China, where the government applied censorship on these local network operators, so if I do not use an HTTP proxy server to bypass this censorship, there will be a lot of TCP timeout, close TCP connection or SSL cert mismatch, etc.

so I got these in logfile:

2019-08-10 10:56:44.341 Error HttpClient: Error getting response from https://www.thetvdb.com/banners/graphical/83277-g2.jpg	*** Error Report ***	Version: 4.2.1.0	Command line: C:\EmbyServer\system\EmbyServer.dll	Operating system: Microsoft Windows NT 6.2.9200.0	64-Bit OS: True	64-Bit Process: True	User Interactive: True	Runtime: file:///C:/EmbyServer/system/System.Private.CoreLib.dll	Processor count: 16	Program data path: C:\EmbyServer\programdata	Application directory: C:\EmbyServer\system	System.Net.Http.HttpRequestException: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host2019-08-10 10:37:51.972 Error App: Error downloading news	*** Error Report ***	Version: 4.2.1.0	Command line: C:\EmbyServer\system\EmbyServer.dll	Operating system: Microsoft Windows NT 6.2.9200.0	64-Bit OS: True	64-Bit Process: True	User Interactive: True	Runtime: file:///C:/EmbyServer/system/System.Private.CoreLib.dll	Processor count: 16	Program data path: C:\EmbyServer\programdata	Application directory: C:\EmbyServer\system	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Connection to https://emby.media/community/index.php?/blog/rss/1-media-browser-developers-blog timed out ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request. ---> System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
Posted (edited)

I've tried using environment variables "http_proxy" and those register table items in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings and I found that Emby just doesn't read them.

 

Maybe add a setting item or read from WebRequest.DefaultWebProxy?

 

And I am also wondering that where can I found source code of recent version? Maybe I can make a PR instead of just waiting.

Edited by Wencey
Posted

Ok I guess this is something we'd have to add support for. Would this be only for certain domains or for all?

Posted (edited)

The censorship is about applied to any domain that not under control by the government. So for Emby, this is all domains.

Edited by Wencey
  • 10 months later...
Posted

Sorry to bother, is there any update about this problem?

Posted
9 minutes ago, dofine said:

Sorry to bother, is there any update about this problem?

Hi. what is your issue?

Posted

Same as the op. Due to the block of certain domains(e.g. github related) of GFW,  we cannot fetch metadata, or install emby plugins, or check emby version update.

 

Posted
8 hours ago, dofine said:

Same as the op. Due to the block of certain domains(e.g. github related) of GFW,  we cannot fetch metadata, or install emby plugins, or check emby version update.

 

Have you tried using a VPN?

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