Mac OSX Proxy Configurations and Bypass Addresses with Plex

the first works, the second doesn't?
I use a Proxy Service to unblock U.S. bound content, and I have a Squid Proxy Server configured on my Mac to forward request to the parent Proxy Service.

When I configure the Proxy Settings on MAC OS X, There is a part when you setup the Bypass addresses, so you don't send unnecessary request to the Proxy Server.

I am not sure if it is intentional or it is a bug, but when I Start Plex, it apparently is not taking the Bypass Addresses into account.

I am looking at the Proxy Log Files, and when I access the PMS Interface via Firefox, it works without any problem and I can see the pages just fine, but when I Start Plex, I get all kinds of logs requesting for localhost addresses.

I am also getting this log:

<br />
2011-10-09 22:57:37,922 (-4fa6b000) :  DEBUG (networking:96) - Requesting http://localhost.local.:32400/library/sections<br />
2011-10-09 22:57:38,174 (-4fa6b000) :  ERROR (networking:130) - Error opening URL 'http://localhost.local.:32400/library/sections'<br />
2011-10-09 22:57:38,175 (-4fa6b000) :  CRITICAL (peerservice:389) - Exception getting server information (most recent call last):<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/System.bundle/Contents/Code/peerservice.py", line 386, in servers_lock<br />
    self.servers[identifier].update_server_info()<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/System.bundle/Contents/Code/peerservice.py", line 104, in update_server_info<br />
    sections_el = XML.ElementFromString(sections_xml)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 276, in ElementFromString<br />
    return self._core.data.xml.from_string(string, encoding)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/data.py", line 141, in from_string<br />
    ud = UnicodeDammit(str(string), isHTML=isHTML)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 145, in __str__<br />
    self.load()<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 100, in load<br />
    f = self._opener.open(self._request, timeout=self._timeout)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 444, in open<br />
    response = meth(req, response)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 557, in http_response<br />
    'http', request, response, code, msg, hdrs)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 482, in error<br />
    return self._call_chain(*args)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain<br />
    result = func(*args)<br />
  File "/Users/user/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 565, in http_error_default<br />
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)<br />
HTTPError: HTTP Error 503: Service Unavailable<br />




If I type http://localhost.local.:32400/library/sections (the url that triggers the error) on firefox, I will get the XML file without problems.

To further test, I removed the Bypass Addresses from the MAC OS X settings, and surely I started getting errors when trying to use the url in firefox (another lead).

I also noticed that this doesn't happen on the first parts of the execution of Plex, when the links are in the form of http://127.0.0.1:34200/{service name}, but as soon as Plex detects and starts using the host name of the server, it goes very wrong.

I suspect other errors I am having on different Plugins are related to this one too.
1 Like

Thanks you.



My plugins didn’t work anymore either.

The cause was also my proxy. :slight_smile: As soon as proxy removed, everything was working great.



It seems to be a bug.

Is this using a PAC file? I don’t currently use one, but I did successfully for two years in Germany in order to watch BBC. I’m curious if this is now broken. Boxee doesn’t respect OSX proxy settings, but Plex always had.



My PAC file:


function FindProxyForURL(url, host)<br />
{<br />
if (<br />
shExpMatch(url, "*.bbc.co.uk/iplayer/episode/*") ||<br />
shExpMatch(url, "*.bbc.co.uk/iplayer/bigscreen/tv/episode/*") ||<br />
shExpMatch(url, "*.bbc.co.uk/mediaselector/4/mtis/stream*") ||<br />
shExpMatch(url, "*.bbc.co.uk/mediaselector/4/mtis/stream*") <br />
)<br />
{<br />
return "PROXY proxy.ip.address.here";<br />
}<br />
else<br />
{<br />
return "DIRECT";<br />
}<br />
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.