INFO w/ solution: Authentication breaks with sqlalchemy 2.0.38 #1513
-
First Check
Commit to Help
Example Code
DescriptionI just got the latest template running locally. Authentication breaks when trying to receive the user from the db by id in this is the current implementation:
with the new sqlalchemy version 2.0.38 the session.get now expects the id to be passed as a UUID instance and not a string. To fix it for me locally i just create an instance of the UUID to pass as the parameter. I have not tested yet if this breaks with earlier versions. Ofc we could also pin sqlalchemy<2.0.38 I dont think i know enough about the libs to make any suggestions Operating SystemmacOS Operating System DetailsNone Python Version3.13 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, maybe i was a bit too quick with the post. I just checked the other past versions until sqlalchemy 2.0.35 and they all dont work. The reason is probably that i changed to sqlite locally because postgres makes no sense for me, although I would have thought that DBs would be interchangeable here in the template. Still maybe it will help others changing to sqlite for development Shall I delete or leave it up? |
Beta Was this translation helpful? Give feedback.
Ok, maybe i was a bit too quick with the post. I just checked the other past versions until sqlalchemy 2.0.35 and they all dont work. The reason is probably that i changed to sqlite locally because postgres makes no sense for me, although I would have thought that DBs would be interchangeable here in the template. Still maybe it will help others changing to sqlite for development
Shall I delete or leave it up?