Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Return code: 500 Reason: Internal Server Error" #36

Open
leninsaccountant opened this issue Jan 10, 2022 · 5 comments
Open

Getting "Return code: 500 Reason: Internal Server Error" #36

leninsaccountant opened this issue Jan 10, 2022 · 5 comments

Comments

@leninsaccountant
Copy link

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

@deafmute1
Copy link

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.

@leninsaccountant
Copy link
Author

@XDGFX Hi Callum, do you have a solution for this? Thanks

@XDGFX
Copy link
Owner

XDGFX commented May 27, 2022

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.

@derritter88
Copy link

Just as an information: I run the script and Plex console threw following error:
[Req#4a562] PlaylistImporter: invalid section 11

@derritter88
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants