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
The web can be displayed normally. When clicking submit, the error shows up:
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/yc27979/anaconda3/envs/srgpt-demo/lib/python3.10/site-packages/pydantic/type_adapter.py", line 271, in _init_core_attrs
self.core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
File "/home/yc27979/anaconda3/envs/srgpt-demo/lib/python3.10/site-packages/pydantic/type_adapter.py", line 55, in _getattr_no_parents
raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__
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.
The text was updated successfully, but these errors were encountered:
The web can be displayed normally. When clicking submit, the error shows up:
The text was updated successfully, but these errors were encountered: