Plex Web API Error 2000

I keep getting error 2000 (URLError)
http://192.168.0.3:32400/system/players/192.168.0.5/application/playMedia?key=/library/metadata/96392&path=http://192.168.0.3:32400/library/metadata/96392&X-Plex-Token=My_Plex_Token_Here
Where My_Plex_Token_Here is actually filled with the token combo.

The xml file that appears says

Traceback (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handlerequest result = f(d) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\System.bundle\Contents\Code\playerservice.py", line 67, in process_legacy_remote_command result = cmd(kwargs) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 19, in _apply return apply(f, args, kwargs) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\playerkit.py", line 52, in __call_ return self.format_response(self._player._send_http_command(cmd)) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\playerkit.py", line 194, in _send_http_command response = self._core.networking.http_request(("http://%s:%s/xbmcCmds/xbmcHttp?command=" % (self._host, self._http_port)) + urllib.quote(cmd), cacheTime=0, immediate=True) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components etworking.py", line 370, in http_request return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components etworking.py", line 141, in __init_ self.load() File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1bef33a\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components etworking.py", line 181, in load f = self._opener.open(req, timeout=self._timeout) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 404, in open response = self._open(req, data) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 422, in _open '_open', req) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 382, in _call_chain result = func(*args) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1214, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1184, in do_open raise URLError(err) URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>

At the end it says the target machine is refusing it. I’ve tried sending it to an Android client and enabled the remote connection setting in the app, to no avail. And tried sending it to a web client, to no avail either. I’m so lost at this point, any help would be really appreciated.

I’ve got a similar problem since a couple of days. Before it worked without a problem. I get this message:

<Response code="2000" status="HTTPError: "><Traceback>Traceback (most recent call last): File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request result = f(**d) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/System.bundle/Contents/Code/playerservice.py", line 67, in process_legacy_remote_command result = cmd(**kwargs) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 19, in _apply return apply(f, args, kwargs) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/playerkit.py", line 395, in f return req.content File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 265, in content return self.__str__() File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 243, in __str__ self.load() File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 181, in load f = self._opener.open(req, timeout=self._timeout) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 444, in open response = meth(req, response) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 557, in http_response 'http', request, response, code, msg, hdrs) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 482, in error return self._call_chain(*args) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain result = func(*args) File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-1bef33a/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 565, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 400: Bad Request </Traceback></Response>

My URL looked like this:
http://192.168.178.27:32400/system/players/192.168.178.27/navigation/moveUp?X-Plex-Token=myToken

Any help is really appreciated! :slight_smile:

Did either of you get anywhere with this? I’m having the same problem as well with an app I am supporting.

I get this error whether I use the old players/ip/player syntax or I proxy a command to the client via the server with a X-Plex-Target-Client header present. However, strangely enough some of my users have this problem and some of them do not. I tried a new clean install of PMS 1.3.3.3148-b38628e on another PC and get the concern there still. When looking at the log, I sometimes see that the request is forwarded to the client player, but it may be refused as it can not find a timeline subscription for device “” so it appears the headers passed with the command are getting dropped when sent over due to this error?

I just worked with another developer and have now been able to proxy a command successfully to PMP via the Server. It turned out that when I pulled the token for my app, I needed to pass more headers of information, and then I had to change the manner in which I pass the headers to the server with the command.

Im sorry to bring this back from the dead, but I’m having sorta the same issue : my url is the following :

http://192.168.1.40:32400/player/playback/pause?X-Plex-Target-Client-Identifier=MYIDHERE&commandID=1337&X-Plex-Token=MYTOKENHERE

obfuscated tokens & ID, but got em from plex web & plex/clients.

I got an error 406 with this :

Traceback (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request result = f(**d) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\System.bundle\Contents\Code\playerservice.py", line 38, in process_remote_command headers=Request.Headers) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api etworkkit.py", line 194, in Request method=method, File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api etworkkit.py", line 67, in _http_request req = self._core.networking.http_request(url, *args, **kwargs) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components etworking.py", line 370, in http_request return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components etworking.py", line 141, in __init__ self.load() File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-c789b3fbb\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components etworking.py", line 181, in load f = self._opener.open(req, timeout=self._timeout) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 435, in open response = meth(req, response) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 473, in error return self._call_chain(*args) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 407, in _call_chain result = func(*args) File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 406: Not Acceptable

If you can pass allong the URL you’re using, it’d be useful thanks