Skip to content
Discussion options

You must be logged in to vote

Your code works well

SQLAlchemy marks object as expired after calling commit.
Next time you are attempting to use them it will try to refresh that object.
But it will fail since you are using async connection and all calls should be awaited.

So, after commit you should refresh objects to use them later

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants