Async return value after commit returns greenlet_spawn has not been called
#651
Unanswered
daniel-butler
asked this question in
Questions
Replies: 1 comment
-
hi, I have a same issue , have you solved? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
https://github.com/daniel-butler/reproduce-commit-issue
Description
I'm not really sure if SQLModel is the correct package, but figured I would start here. Even though the error is from SQLAlchemy I think it is outside of the SQLAchlemy realm since I can access the variable
entry.id
in other places in the function. The error can be reproduced using this repository.The order to reproduce the error below.
Run the command below, it is set to give a verbose output.
The error can be avoided by creating and using a variable before the final
db.commit()
here.Output from pip freeze.
Operating System
macOS
Operating System Details
On a Mac M1
SQLModel Version
0.0.8
Python Version
3.11.5
Additional Context
When I refresh the entry it also works.
This is contained in the additional-refresh branch
Beta Was this translation helpful? Give feedback.
All reactions