You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting these errors.
Unable to determine why (since I'm in a isolated conda env)
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/furiosa/.local/lib/python3.10/site-packages/pydantic/type_adapter.py", line 279, in _init_core_attrs
self._core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
File "/home/furiosa/.local/lib/python3.10/site-packages/pydantic/type_adapter.py", line 121, in _getattr_no_parents
raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__
Workaround I found here was to downgrade fastapi from 0.114.0 to 0.111.0
Downgrading fastapi can solve the problem e.g.:
pip install fastapi==0.111.0
Reproduction steps
Just invoked the app locally:
`python app.py`
Screenshots
![DESCRIPTION](LINK.png)
Logs
No response
Browsers
No response
OS
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Description
I'm getting these errors.
Unable to determine why (since I'm in a isolated conda env)
Workaround I found here was to downgrade
fastapi
from0.114.0
to0.111.0
Downgrading fastapi can solve the problem e.g.:
Reproduction steps
Just invoked the app locally: `python app.py`
Screenshots
![DESCRIPTION](LINK.png)
Logs
No response
Browsers
No response
OS
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: