Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Issue With Setup #136

Open
Noah-Nauman opened this issue Aug 4, 2021 · 1 comment
Open

Issue With Setup #136

Noah-Nauman opened this issue Aug 4, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Noah-Nauman
Copy link

Noah-Nauman commented Aug 4, 2021

This error originated from a custom integration.
latest verison
trying to setup plex assistant and I get this
tried both manual and HACS install

Logger: homeassistant.config_entries
Source: custom_components/plex_assistant/plex_assistant.py:37
Integration: Plex Assistant (documentation)
First occurred: 11:02:35 PM (1 occurrences)
Last logged: 11:02:35 PM

Error setting up entry Plex Assistant for plex_assistant
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, 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 652, in query
raise BadRequest(message)
plexapi.exceptions.BadRequest: (500) internal_server_error; http://thearchiveplex.duckdns.org:32400/library/all?sort=addedAt%3Adesc&type=10 <title>Internal Server Error</title>

500 Internal Server Error

Cant setup the integration

@Noah-Nauman Noah-Nauman added the bug Something isn't working label Aug 4, 2021
@github-actions
Copy link

github-actions bot commented Aug 4, 2021

Important:

Issues that don't provide the information requested in the troubleshooting docs may not get a reply and may be closed until the info is provided. Please, include as much of the requested info as possible so that I can replicate and investigate your issue.

When pasting in your config/code/errors always place 3 backticks ``` above the first line and after the last line. Doing this will format it correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant