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]: AttributeError: 'str' object has no attribute 'get' #11923

Open
papampi opened this issue Feb 1, 2025 · 0 comments
Open

[APP SUBMITTED]: AttributeError: 'str' object has no attribute 'get' #11923

papampi opened this issue Feb 1, 2025 · 0 comments

Comments

@papampi
Copy link

papampi commented Feb 1, 2025

INFO

Python Version: 3.11.10 (main, Jan 14 2025, 07:39:54) [GCC 8.4.0]
Operating System: Linux-5.10.60-qnap-x86_64-with-glibc2.27
Locale: UTF-8
Branch: master
Database: 44.19
Commit: d996387
Link to Log: https://gist.github.com/papampi/4b9ab45f1b44402de2355a4b2268b238

ERROR

2025-02-01 14:36:58 ERROR    TORNADO :: [d996387] Uncaught exception in APIv2: AttributeError("'str' object has no attribute 'get'")
Request: GET /api/v2/history?page=1&limit=50&sort=[%22[%7B%5C%22field%5C%22:%5C%22date%5C%22,%5C%22type%5C%22:%5C%22desc%5C%22%7D]%22]&filter=%7B%7D&compact=true (192.168.1.121)
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/repo-cache/ext/tornado/web.py", line 1704, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/repo-cache/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/repo-cache/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/repo-cache/ext/tornado/gen.py", line 762, in run
    value = future.result()
            ^^^^^^^^^^^^^^^
  File "/opt/lib/python3.11/concurrent/futures/thread.py", line 58, in run
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/repo-cache/medusa/server/api/v2/history.py", line 139, in get
    field = sort[0].get('field').lower()
            ^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'

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