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

[APP SUBMITTED]: TypeError: expected string or bytes-like object #11860

Open
taochern opened this issue Oct 16, 2024 · 0 comments
Open

[APP SUBMITTED]: TypeError: expected string or bytes-like object #11860

taochern opened this issue Oct 16, 2024 · 0 comments

Comments

@taochern
Copy link

INFO

Python Version: 3.10.8 (main, Oct 13 2022, 23:33:11) [GCC 10.3.1 20211027]
Operating System: Linux-4.4.302+-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.19
Commit: d9c31da
Link to Log: https://gist.github.com/taochern/7ed9b17d6fdf312bdc01192382e094d9

ERROR

2024-10-16 19:59:50 ERROR    TORNADO :: [d9c31da] Uncaught exception in APIv2: TypeError('expected string or bytes-like object')
Request: PUT /api/v2/search/backlog (172.17.0.1)
With body:
{"showSlug":"tvdb350071","episodes":[null],"options":{}}
Traceback (most recent call last):
  File "/app/medusa/ext/tornado/web.py", line 1704, in _execute
    result = await result
  File "/app/medusa/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/app/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/app/medusa/ext/tornado/gen.py", line 762, in run
    value = future.result()
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/app/medusa/medusa/server/api/v2/search.py", line 74, in put
    return self._search_backlog(data)
  File "/app/medusa/medusa/server/api/v2/search.py", line 129, in _search_backlog
    episode_segments = self._get_episode_segments(series, data)
  File "/app/medusa/medusa/server/api/v2/search.py", line 284, in _get_episode_segments
    episode_number = EpisodeNumber.from_slug(episode_slug)
  File "/app/medusa/medusa/tv/episode.py", line 107, in from_slug
    match = cls.regex.match(slug)
TypeError: expected string or bytes-like object

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

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

1 participant