You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm not doing something right, but I'm using asyncpg to connect to my postgresql database which houses my users. The user_loader is synchronous. I have tried using loop.run_until_complete but I get one of the following errors: Cannot run the event loop while another loop is running RuntimeWarning: coroutine 'User.get' was never awaited
Am I trying to do something that just isn't possible with this package or am I missing a step somewhere?
Flask does not yet support ASGI. That's required before any extensions can think about support for async, at which point every extension will still need to be written to support async. If you're interested in adding ASGI support, see pallets/werkzeug#1322.
Maybe I'm not doing something right, but I'm using asyncpg to connect to my postgresql database which houses my users. The user_loader is synchronous. I have tried using
loop.run_until_complete
but I get one of the following errors:Cannot run the event loop while another loop is running
RuntimeWarning: coroutine 'User.get' was never awaited
Am I trying to do something that just isn't possible with this package or am I missing a step somewhere?
Code at:
https://github.com/wpmjones/studtext/blob/master/temp.py
The text was updated successfully, but these errors were encountered: