LIke the title states I get this error when I setup Plex Assistant through Home Assistant. Always get the following error. I even went as far as going multiple fresh installs of Home Assistant and still the same error. What could it be on my end causing this issue?
,
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/plex_assistant/plex_assistant.py:37
Integration: Plex Assistant (documentation)
First occurred: 8:37:45 AM (1 occurrences)
Last logged: 8:37:45 AM
Error setting up entry http://ipaddress:32400 for plex_assistant
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/config/custom_components/plex_assistant/init.py”, line 79, in async_setup_entry
pa = await hass.async_add_executor_job(pa_executor, server, list(start_script.keys()))
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/plex_assistant/init.py”, line 76, in pa_executor
_LOGGER.debug(f"Media titles: {len(_pa.media[‘all_titles’])}")
File “/config/custom_components/plex_assistant/plex_assistant.py”, line 37, in media
media_items[f"{item}_titles"] = [x.title for x in self.library.search(libtype=item, sort=“addedAt:desc”)]
File “/usr/local/lib/python3.9/site-packages/plexapi/library.py”, line 106, in search
return self.fetchItems(key)
File “/usr/local/lib/python3.9/site-packages/plexapi/base.py”, line 260, in fetchItems
data = self._server.query(ekey, params=url_kw)
File “/usr/local/lib/python3.9/site-packages/plexapi/server.py”, line 669, in query
raise BadRequest(message)
plexapi.exceptions.BadRequest: (500) internal_server_error; http://ipaddress:32400/library/all?sort=addedAt%3Adesc&type=10 Internal Server Error