-
-
Notifications
You must be signed in to change notification settings - Fork 30
Flask with WSGI sync gives asyncio event loop errors. #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, @CoultonF , can you please share the models declaration? It helps a lot to write tests and search for solutions 😉 |
I have hacky solution to this, by overriding the StrawberrySQLAlchemyMapper() class. Specifically, I had to rewrite the relationship_resolver_for() and association_proxy_resolver_for() to use sync methods. Flask doesn't have great support for asynchronous. In case someone else comes across this I'll leave my solution here.
|
Thanks, @CoultonF , so you think that its a Flask problem, right? |
@Ckk3 Yes, only a flask issue. |
I'll keep this issue opened because I think we need to make a easier option to devs use sync connection. |
Uh oh!
There was an error while loading. Please reload this page.
If I use this in a WSGI flask application when you try to access a nested relationship pattern you get a threading error.
If I avoid using this package, and write out the fields and types it works.
The text was updated successfully, but these errors were encountered: