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
sentinel-api-1 | sqlalchemy.exc.InvalidRequestError: Can't match sentinel values in result set to parameter sets; key '5bab0055-1d7c-4000-92e8-1892de25bc26' was not found. There may be a mismatch between the datatype passed to the DBAPI driver vs. that which it returns in a result row. Ensure the given Python value matches the expected result type *exactly*, taking care to not rely upon implicit conversions which may occur such as when using strings in place of UUID or integer values, etc.sentinel-api-1 | sqlalchemy.exc.InvalidRequestError: Can't match sentinel values in result set to parameter sets; key '5bab0055-1d7c-4000-92e8-1892de25bc26' was not found. There may be a mismatch between the datatype passed to the DBAPI driver vs. that which it returns in a result row. Ensure the given Python value matches the expected result type *exactly*, taking care to not rely upon implicit conversions which may occur such as when using strings in place of UUID or integer values, etc.
Environment
python==3.11
slqalchemy-utils==0.41.1
sqlalchemy==2.0.27
postgres==16.1
Description
Consider the following models:
When adding new entities like this:
I get the following error:
You can check that by running
docker compose up
on this fastapi project.It works when:
Uuid
fromsqlalchemy
instead ofUUIDType
fromsqlalchemy-utils
server_default
and uncommentingdefault
for datetimessqlalchemy==1.4.51
This issue seems to be related.
Could this be an error from this library?
The text was updated successfully, but these errors were encountered: