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

Plex Discover Service Error: Missing required param searchProviders #2002

Closed
3 tasks done
TDWillingham opened this issue Jun 26, 2024 · 20 comments
Closed
3 tasks done

Comments

@TDWillingham
Copy link
Contributor

TDWillingham commented Jun 26, 2024

Confirmation

  • I have read the README.md on the project homepage
  • I have checked if identical issue already exists
  • I have tried downgrading to find version that can be used as a workaround

The problem

I have Plex Discover turned off on my server. Is there a way to disable this part of the program? I am getting this error currently:

2024-06-25 19:06:07,840 INFO[plextraktsync.sync.WatchListPlugin]:Skipping xxxxxxxx from Trakt watchlist because not found in Plex Discover 2024-06-25 19:06:08,058 ERROR[plextraktsync.plex.PlexApi]:xxxxxxxx: Searching Plex Discover error: (400) bad_request; https://discover.provider.plex.tv/library/search?query=xxxxxxxxxxd&limit=30&searchTypes=tv&includeMetadata=1 {"Error":{"error":"Bad Request","message":"Missing required param searchProviders!","statusCode":400}}

Or am I misunderstanding what is going on here?

Steps to reproduce the behavior

  1. plextraktsync sync

Error trace / logs

No response

Expected behavior

Skip using Plex Disoverer

Inspect of problematic items

No response

Workarounds

No response

Config file contents

No response

Install method

docker-compose

Version

0.31.4

Python Version

3.12.4

Plex Server Version

4.15.14

Operating System and Version

Unraid

@TDWillingham TDWillingham changed the title Plex Discoverer Service Error Plex Discover Service Error Jun 26, 2024
@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

The Error comes from WatchListPlugin.

You can try to disable it, i.e disable watchlist cloud syncing, i.e use playlists, or disable it completely.

@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

I have Plex Discover turned off on my server

how it's done?

@TDWillingham
Copy link
Contributor Author

I have Plex Discover turned off on my server

how it's done?

Settings -> Online Media Sources -> Disable all of them

I'm still not exactly sure what this setting is doing. My fault for sure. Is it something I actually need to keep things in sync with Trakt? Because the error message makes me thing it's related to the Discover service, which I don't like/need. It's part of Plex's monetization efforts, which I understand, just don't like it cluttering it up on the server for inexperienced users.

@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

Settings -> Online Media Sources -> Disable all of them

Not related to syncing of PlexTraktSync. Did enabling prove your otherwise? You didn't respond to other workaround either.

@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

@TDWillingham
Copy link
Contributor Author

I'm not sure how to edit the script inside of a container. I'd have to fork it and change it there, wouldn't I? Then pull it again?

If the error isn't related to those settings, wonder why mine is having the error? That was all I could think of causing it.

@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

  1. edit what script? why?
  2. read readme and contributing, they describe how to build, including how to use version from pr
  3. make the changes and re-run, only you can confirm that (not reproducible)

@TDWillingham
Copy link
Contributor Author

Well that's the strangest thing. I just ran it again a few times to see if it was still occurring and it's not having any errors now. Guess I can mark it as closed now unless you have any more thoughts. No idea what was causing it, that's frustrating.

@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

Since it's third party site, it could be anything ranging from they deployed new code and it was broken or some other temporary anomaly. But since you obfuscated the URL, it's impossible to say what the required parameter might had been. or what there actual query was. From PlexTraktSync debug log might find more details. you need to enable debug logging first.

@TDWillingham
Copy link
Contributor Author

It was just the file names that I obfuscated. I'll keep an eye on it and see if it pops up again. I'll close it for now. Thanks for your help!

@TDWillingham
Copy link
Contributor Author

Error resolved itself. Will monitor for further developments.

@glensc
Copy link
Collaborator

glensc commented Jun 26, 2024

@jakeclements
Copy link

@glensc, not sure if this helps but it looks like it's missing searchProviders=discover as a required param.

https://discover.provider.plex.tv/library/search?query=test&limit=30&searchTypes=tv&includeMetadata=1&searchProviders=discover is returning a 200 and data for me. I checked this through the plex watchlist UI and discovery is the same searchProviders value they're using there.

@jakeclements
Copy link

Looks like there's a PR open to fix it in python-plexapi already over here: pkkid/python-plexapi#1437.

@FrankieBBBB

This comment was marked as spam.

@jakeclements
Copy link

I expect it will be once that PR is merged and a new version published. Looks like it's yet to be merged currently.

@glensc glensc changed the title Plex Discover Service Error Plex Discover Service Error: Missing required param searchProviders Jul 4, 2024
@glensc

This comment was marked as off-topic.

@glensc
Copy link
Collaborator

glensc commented Jul 4, 2024

Reproduced myself too

WARNING  HTTPSConnectionPool(host='metadata.provider.plex.tv', port=443): Read timed out. (read timeout=30) for                                        
         plextraktsync.plex.PlexLibraryItem.get_guids(), retrying after 1 seconds (try: 1/5)                                                           
Processing Plex watchlist 100% ERROR    Freeway: Searching Plex Discover error: (400) bad_request;                                                                                    
         https://discover.provider.plex.tv/library/search?query=Freeway&limit=30&searchTypes=movies&includeMetadata=1 {"Error":{"error":"Bad           
         Request","message":"Missing required param searchProviders!","statusCode":400}}                                                               
INFO     Skipping Freeway (1996) from Trakt watchlist because not found in Plex Discover    

@glensc glensc reopened this Jul 4, 2024
@FrankieBBBB

This comment was marked as spam.

@glensc
Copy link
Collaborator

glensc commented Jul 8, 2024

Fixed by #2008

@glensc glensc closed this as completed Jul 8, 2024
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