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

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

Server fails to serialize Regex pattern #949

George-Miao opened this issue Dec 17, 2024 · 1 comment
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.

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: Planning
Development

No branches or pull requests

3 participants