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 · 0 comments
Open

Server fails to serialize Regex pattern #949

George-Miao opened this issue Dec 17, 2024 · 0 comments

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'>
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