Skip to content

Conversation

@fuhlving
Copy link

The example code would not release the database sessions, so this error occurs only after a few requests to the endpoints:

sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00 (Background on this error at: https://sqlalche.me/e/20/3o7r)

Changed code so the UserService would use a get_db function instead of sessionlocal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant