Record Live TV - Response Error Code: 400

Many times when I navigate through the program guide and setup a recording for a specific show, I receive “Response Error Code: 400”. Sometimes if I input the same settings in a different order it will go through. I’m using an OTA and am selecting the specific channel that works for my setup. Do you know the cause and fix for this? Thanks!

Only way to start an investigation is through logs

See
https://support.plex.tv/hc/en-us/articles/201643703-Reporting-issues-with-Plex-Media-Server
https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files

Please ensure debug logging on the server and for error 400, also set verbose logging on the server, save changes, restart the server. Wait 5 minutes. Reproduce the problem - get a full screenshot and capture the logs and attach the zip and screenshot

I’m experiencing this same issue with my iPhone. Latest iOS Plex app on my iPhone X. I can record to one library (TV Shows) but not another (TV Recordings) from the app. When I try to record anything to TV Recordings library from the app, I get an Error 400. I can record to TV Recordings library fine from Plex Web.

Attached are my logs files and screenshot.

Please help. Thanks

There is an issue with library paths when making recording if the path is changed

To confirm it is the same issue, could you get me the xml form these requests please - copy to text files and save each and attach

http://192.168.1.154:32400/media/subscriptions/template?guid=com.gracenote.onconnect%3A%2F%2Fepisode%2FEP000000351389&type=4&X-Plex-Token=xxxxxxxxxxxxxxxxxxx

and

http://192.168.1.154:32400/library/sections?X-Plex-Token=xxxxxxxxxxxxxxxxxxx

For xxxxxxxxxxxxxx you need to put in the server token - see https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token

I tried those two URL’s with my token and get a “400 Bad Request” for the first URL and blank screen for the second. Let me know what else I can try or do to help with this issue. Thanks

@“stephen.kim” said:
I tried those two URL’s with my token and get a “400 Bad Request” for the first URL and blank screen for the second. Let me know what else I can try or do to help with this issue. Thanks

shouldn’t be - could be typos. it is case sensitive. or could be browser. Safari does not display xml for example

The second one lists your libraries and would not be blank.

Try different browser. Check the case sensitivity of the url characters

Yeah, I was using Safari. I tried with Chrome and still get a “400 Bad Request” message for the first URL but I’ve attached the XML from the second. Thanks

Thanks - it does look like the issue that has been raised
If you have recorded to one library - eg in your case TV Shows, changing that to another library TV Recordings would give error 400 because it is referencing a path that belongs to the earlier used library

Until we have a fix for this, it should be possible to get round the problem by deleting all scheduled recordings that referenced the first library and then recreating them from scratch referencing the new library

Any idea when this will be fixed? I’m having the same problem. I have tried the workaround of deleting scheduled recordings referencing the first library but to no avail. Are you saying we can only ever record to a single library?

@jonjohn84 said:
Any idea when this will be fixed? I’m having the same problem. I have tried the workaround of deleting scheduled recordings referencing the first library but to no avail. Are you saying we can only ever record to a single library?

You can have multiple locations but for a specific scheduled recording to change the location one needs to delete that specific scheduled regular recording and recreate it.

If you still have issues, would need logs to investigate

@sa2000 said:

@jonjohn84 said:
Any idea when this will be fixed? I’m having the same problem. I have tried the workaround of deleting scheduled recordings referencing the first library but to no avail. Are you saying we can only ever record to a single library?

You can have multiple locations but for a specific scheduled recording to change the location one needs to delete that specific scheduled regular recording and recreate it.

If you still have issues, would need logs to investigate

I still have issues. I’m attaching logs and also the .xml response from a /library/sections/?X-Plex-Token=XXXXXXXXXXXXXXXXXXXX query.

My issue is that whenever I use the iphone app to try to schedule any recording to the “TV-Movies” library, I get a response code 400 (screenshot attached). If I try to schedule the same recording but to the “Home Videos” library (which is not where I want TV recordings to go) then it works. Also, this error only occurs while using the iOS app. The web interface works for me – but it’s not convenient to have to go to a web browser to schedule recordings when it should be able to work from the app.

This line from the logs shows the server returning http response code 400:

May 31, 2018 08:38:44.874 [0x7fb03fffe700] DEBUG - Completed: [10.0.1.246:64991] 400 POST /media/subscriptions?hints%5Bguid%5D=com.gracenote.tms%3A%2F%2Fmovie%2FMV005834930000&hints%5Bthumb%5D=https%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Fw154%2FjjBgi2r5cRt36xF6iNUEhzscEcb.jpg&hints%5Btitle%5D=Jurassic%20World&hints%5Btype%5D=1&hints%5Byear%5D=2015&params%5BairingChannels%5D=36%25252E1%253D36%25252E1%252520KXANDT%252520%28NBC%29&params%5BairingTimes%5D=60&params%5BlibraryType%5D=1&params%5BmediaProviderID%5D=3&prefs%5BcomskipEnabled%5D=-1&prefs%5BendOffsetMinutes%5D=3&prefs%5BlineupChannel%5D=&prefs%5BminVideoQuality%5D=0&prefs%5BoneShot%5D=true&prefs%5BrecordPartials%5D=true&prefs%5BreplaceLowerQuality%5D=false&prefs%5BstartOffsetMinutes%5D=3&prefs%5BstartTimeslot%5D=-1&targetLibrarySectionID=6&targetSectionLocationID=2&type=1 (5 live) TLS GZIP 2ms 384 bytes (pipelined: 1)

@jonjohn84 said:

@sa2000 said:

@jonjohn84 said:
Any idea when this will be fixed? I’m having the same problem. I have tried the workaround of deleting scheduled recordings referencing the first library but to no avail. Are you saying we can only ever record to a single library?

You can have multiple locations but for a specific scheduled recording to change the location one needs to delete that specific scheduled regular recording and recreate it.

If you still have issues, would need logs to investigate

I still have issues. I’m attaching logs and also the .xml response from a /library/sections/?X-Plex-Token=XXXXXXXXXXXXXXXXXXXX query.

My issue is that whenever I use the iphone app to try to schedule any recording to the “TV-Movies” library, I get a response code 400 (screenshot attached). If I try to schedule the same recording but to the “Home Videos” library (which is not where I want TV recordings to go) then it works. Also, this error only occurs while using the iOS app. The web interface works for me – but it’s not convenient to have to go to a web browser to schedule recordings when it should be able to work from the app.

This line from the logs shows the server returning http response code 400:

May 31, 2018 08:38:44.874 [0x7fb03fffe700] DEBUG - Completed: [10.0.1.246:64991] 400 POST /media/subscriptions?hints%5Bguid%5D=com.gracenote.tms%3A%2F%2Fmovie%2FMV005834930000&hints%5Bthumb%5D=https%3A%2F%2Fimage.tmdb.org%2Ft%2Fp%2Fw154%2FjjBgi2r5cRt36xF6iNUEhzscEcb.jpg&hints%5Btitle%5D=Jurassic%20World&hints%5Btype%5D=1&hints%5Byear%5D=2015&params%5BairingChannels%5D=36%25252E1%253D36%25252E1%252520KXANDT%252520%28NBC%29&params%5BairingTimes%5D=60&params%5BlibraryType%5D=1&params%5BmediaProviderID%5D=3&prefs%5BcomskipEnabled%5D=-1&prefs%5BendOffsetMinutes%5D=3&prefs%5BlineupChannel%5D=&prefs%5BminVideoQuality%5D=0&prefs%5BoneShot%5D=true&prefs%5BrecordPartials%5D=true&prefs%5BreplaceLowerQuality%5D=false&prefs%5BstartOffsetMinutes%5D=3&prefs%5BstartTimeslot%5D=-1&targetLibrarySectionID=6&targetSectionLocationID=2&type=1 (5 live) TLS GZIP 2ms 384 bytes (pipelined: 1)

Looks like an issue with the iOS app that is arising after you schedule a recording for a library with multiple locations

I see your Home Videos library has 2 locations

/n/jfam/Johnson Family/Videos
/n/jfam/JonAndKim/Videos

When you then try to record into the TV Movies library which has one location, it is picking up the previously selected location /n/jfam/JonAndKim/Videos and getting the 400 error from PMS since that location does not belong to the TV Movies library

If you could reproduce the problem obtaining screenshots at every stage and also running with verbose logging on the iOS app and obtain logs from ioS app and server - I will then refer it to the iOs team

See section on emailing device log here https://support.plex.tv/articles/201636593-ios-logs/
email to yourself and attach the zip + screenshots and PMS logs

I am attaching the requested logs from the iOS app and PMS as well as screenshots. Thanks for looking into it. Would love this to work in a future update.

@jonjohn84 said:
I am attaching the requested logs from the iOS app and PMS as well as screenshots. Thanks for looking into it. Would love this to work in a future update.

Thank you. Could you try the following request in a browser on the server. I am not sure if it is still valid but worth trying

http://127.0.0.1:32400/media/subscriptions/template?guid=com.gracenote.tms%3A%2F%2Fmovie%2FMV000723190000&type=1&X-Plex-Token=xxxxxxxxxxxxxxx

Substitute the server token characters for the xxxxxxxxxxxxxxxxxx

You can find out what the server token is by following the steps outlined here
https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

Copy the displayted response into a text file and save and attached

I am attaching the response from the request you asked for.

@jonjohn84 said:
I am attaching the response from the request you asked for.

Thank you very much. I am discussing this with the development team. I have managed to recreate the problem. This may help you circumvent the issue. The default library and path within the library (if there are multiple locations) is set after you start or schedule a recording. The bug is that if you start with a recording into a library that has multiple locations (paths) and that then becomes the default template for recordings and then you edit the scheduled recording to go to a different library - one that has only one location / path - then the old location path for the previously used library is not getting cleared and end up with an illegal combination for the template

If the new library has more than one location / path - then i would expect it to overwrite the previous location and replace it with the one you are using now

So to get round the problem, try the following -

  • Edit the TV-Movies library to add a folder path to an empty folder - this will not be used. The library will now have 2 paths - this path and the one you use /n/jfam/Multimedia/TV-Movies
  • Schedule recording to use this library and the TV-Movies location. This will now become the new default.
  • Edit existing scheduled recordings for this library to make sure it selects the /n/jfam/Multimedia/TV-Movies Location

I am hoping that there will be a fix soon - in the meantime this should get round the problem

@sa2000 Thanks for the workaround! Seems to be working for me.

Plex Media Server beta 1.13.7.5369 has just been released. It has a fix for the problem that arises after changing from a multi-location recording library to one with one location path only

See Release Note Plex Media Server

  • (DVR) Changing destination library from one with mulitple paths to one with a single path for a DVR recording no longer causes a recording failure (#7551)

[Please note there is a similar bug in Plex for iOS that arises when changing the recording within the Plex for iOS app - this has been fixed and the fix will be released soon]