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

Server fails to serialize Regex pattern #949

Closed
George-Miao opened this issue Dec 17, 2024 · 1 comment
Closed

Server fails to serialize Regex pattern #949

George-Miao opened this issue Dec 17, 2024 · 1 comment
Assignees
Labels
backend This belongs to backend devs

Comments

@George-Miao
Copy link

I have following ranking settings in my settings.json:

// ...
"ranking": {
  // ...
  "preferred": [ 
    "BluRay" 
  ],
  // ...
}

However, when I request /settings/ranking, I get an 500 error. Server logs show:

   File "/app/.venv/lib/python3.11/site-packages/fastapi/_compat.py", line 149, in serialize
     return self._type_adapter.dump_python(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/app/.venv/lib/python3.11/site-packages/pydantic/type_adapter.py", line 527, in dump_python
     return self.serializer.to_python(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
 pydantic_core._pydantic_core.PydanticSerializationError: Unable to serialize unknown type: <class '_regex.Pattern'>
@wolfemir wolfemir moved this to Planning in Riven Road Map Jan 17, 2025
@machetie
Copy link
Collaborator

Consolidating configuration and settings issues:

Related issue:

These issues relate to settings handling and configuration. Will track all configuration-related improvements here.

@machetie machetie added backend This belongs to backend devs bug Something isn't working labels Jan 17, 2025
@davidemarcoli davidemarcoli removed the bug Something isn't working label Jan 21, 2025
@dreulavelle dreulavelle self-assigned this Feb 10, 2025
@dreulavelle dreulavelle moved this from Planning to Todo in Riven Road Map Feb 10, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Riven Road Map Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This belongs to backend devs
Projects
Status: Done
Development

No branches or pull requests

4 participants