400 Bad Request

When trying to get a new system installed with Plex I did a transfer I believe of the database following instructions from the Plex website.

I see all my shows and need to fix some of the metadata, no big deal. I thought it was all set until I tried playing on my Nvidia Shield. I’m getting a 400 Bad Request.

I tried even going back to trying to play using the old server and I’m pretty sure I’m having the same issue. Does copying a database to a new do anything to the old? Should I just do a new install? The only thing I’m really trying to save is just my watch history, I could care less to download all the art again…

What does everyone think?

Were both the new and the old Plex server shut down during the copy?

Did you also copy the registry branch from the old to the new server?
If you did, you cannot run the old and the new server concurrently. To make the new server separate, you’ll have to manipulate the registry again:
remove the following keys:

  • AnonymousMachineIdentifier
  • MachineIdentifier
  • ProcessedMachineIdentifier
  • PlexOnlineToken

Additionally, edit the key FriendlyName, so that the two machines get unique names in the Plex user interface.

ok, I guess I’ll uninstall… I’m not sure if the backup was done when the server was shut off.

Is there a way to just hold on to the watch history instead of doing the entire database?

Transfer only the primary database file from old to new.
However, this may still not work for some items, because they may get matched with a different metadata agent than they were on the old server.
So transferring the whole Plex data folder is the safer option.

Same thing in trying again. This time confirming the plex servers were both off before backing up and reloading to the new one.

I removed all the registry sections you mentioned as well… any other ideas?

Does the issue only happen when you try to play on the shield?
What happens if you try a different Plex client?

ok so, the original one is doing the same thing it seems using the official Plex client in SPMC. The original server seems to work using the regular Plex client though without issues.

the new server shows the same 400 bad request error with spmc. Opening with the plex client does work but has a long pause to get started and plays for 2 seconds before pausing, eventually playing and pausing again every couple of seconds… my new pc is an upgrade as well… haha

Sorry, what is SPMC?

A version of Kodi built for the Nvidia Shield

Then I can only suggest that you wipe the install and set up a minimal library with a few of the affected items and see if the server is doing the same with a fresh install.

Ok so the slowness was due to a bad Ethernet cable. Fixed that. So now, I have 2 different servers, both playing with Plex with no issues but once I started this, both are now showing 400 Bad Request with the official Plex client in Kodi. I did try reinstalling everything on the Client side with no luck

I’ve pretty much migrated to the new system with no fault but ever since migrating I’m still unable to get this to work with SPMC(Kodi runoff for Android) which is extremely odd. It sees the server but playing any of the files give the same 400 error.

My log file isn’t showing much I feel… but here it is:

21:02:53.826 T:201880204528   ERROR: _________________________________________________________________________________
21:02:53.826 T:201880204528   ERROR: script.plex: ERROR:
21:02:53.826 T:201880204528   ERROR:     Traceback (most recent call last):
21:02:53.826 T:201880204528   ERROR:       File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.plex/lib/player.py", line 708, in _playVideo
21:02:53.826 T:201880204528   ERROR:         self.playerObject = self.playerObject.getServerDecision()
21:02:53.826 T:201880204528   ERROR:       File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.plex/lib/_included_packages/plexnet/plexplayer.py", line 205, in getServerDecision
21:02:53.826 T:201880204528   ERROR:         response = request.getWithTimeout(10)
21:02:53.826 T:201880204528   ERROR:       File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.plex/lib/_included_packages/plexnet/http.py", line 123, in getWithTimeout
21:02:53.826 T:201880204528   ERROR:         return HttpObjectResponse(self.getPostWithTimeout(seconds), self.path, self.server)
21:02:53.826 T:201880204528   ERROR:       File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.plex/lib/_included_packages/plexnet/http.py", line 310, in __init__
21:02:53.826 T:201880204528   ERROR:         self.items = plexobjects.listItems(server, path, data=data, container=self)
21:02:53.826 T:201880204528   ERROR:       File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.plex/lib/_included_packages/plexnet/plexobjects.py", line 516, in listItems
21:02:53.826 T:201880204528   ERROR:         data = data if data is not None else server.query(path)
21:02:53.826 T:201880204528   ERROR:       File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.plex/lib/_included_packages/plexnet/plexserver.py", line 175, in query
21:02:53.826 T:201880204528   ERROR:         raise exceptions.BadRequest('({0}) {1}'.format(response.status_code, codename))
21:02:53.826 T:201880204528   ERROR:     BadRequest: (400) bad_request
21:02:53.826 T:201880204528   ERROR: _________________________________________________________________________________
21:02:53.826 T:201880204528   ERROR: `

Hi Everyone,

i used SPMC on my FireTv as Base for the Plex Plugin.
The reason is, like this you can use DTS-Passthrough with Plex and the FireTv.
Since i would say 3 Months the Plexapp in SPMC wont play any files.
It says as above Error 400, bad request.
Every other App can play the files, like the original Plex firetv App.
But then i wont have DTS.
Did something change?
Thanks for the help.