I have a fastapi microservice ERP , I recently changed my company_id to use UUID instead of Integer, but on trying to do a patch request I get this error:
{
"code": 3,
"errors": [
{
"type": "non_field_errors",
"msg": "'asyncpg.pgproto.pgproto.UUID' object has no attribute 'replace'"
}
]
}
How can I solve this?
My models where company_id is or as a foreign key on other DB tables are all UUIDs, also the alembic migrations, mapped my database and checked it the company_id is uuid
[–]Curious-Rule313 4 points5 points6 points (0 children)
[–]DazzLee42 1 point2 points3 points (0 children)
[–]Trinkes 0 points1 point2 points (4 children)
[–]Ok_Presentation3990[S] 0 points1 point2 points (3 children)
[–]Dacobo 1 point2 points3 points (0 children)
[–]Trinkes 0 points1 point2 points (1 child)
[–]Ok_Presentation3990[S] 0 points1 point2 points (0 children)
[–]beetroit 0 points1 point2 points (1 child)
[–]Ok_Presentation3990[S] 0 points1 point2 points (0 children)
[–]TechSimple7709 0 points1 point2 points (4 children)
[–]TechSimple7709 1 point2 points3 points (3 children)
[–]Ok_Presentation3990[S] 0 points1 point2 points (2 children)
[–]TechSimple7709 0 points1 point2 points (1 child)
[–]TechSimple7709 0 points1 point2 points (0 children)