PPP
PPP copied to clipboard
Getting "Return code: 500 Reason: Internal Server Error"
I am trying to set up PPP. I'm using a Windows machine.
Everything seems to be working during the setup phase. It finds my local playlists fine. But when it comes time to actually run PPP, I get the following:
Sending updated playlist to Plex: highlife.m3u ERROR: Return code: 500 Reason: Internal Server Error
Also getting this error. Not an issue for me as Plex is my main/only music server right now, and I just use this script to export the playlists for backup/future use as I care about having my playlists available in a service agnostic format. I'll try and investigate the API, but the lack of any documentation from plex makes it hard.
@XDGFX Hi Callum, do you have a solution for this? Thanks
Hey, sorry for the lack of response. Yep it's an error from Plex, and as deafmute1 says there isn't really any documentation on the api to help.
Are you able to run and debug the code? If so I would try breaking on line 673 (just before it sends the POST request), copying the querystring parameters and trying to POST with another program like Postman or Curl.
I imagine one of the parameters might be wrong, so either the section ID, Plex token, or maybe most likely the Plex path. Have a look at _plex_path
after line 668 (add print(_plex_path)
on the next line if you can't debug) and see if the path looks correct, and make sure it's accessible from wherever your Plex instance is running.
Just as an information: I run the script and Plex console threw following error:
[Req#4a562] PlaylistImporter: invalid section 11
I think I found the solution for this:
You need to adopt the value selection_id
with the current music id - e.g.:
curl -k -XGET https://plex.server.fqdn:32400/library/sections/?X-Plex-Token=*********
This will give you an XML response and you need to identify which directory does include the music and take the Location id=x
from that.
After that the PPP.py scripts works again.