-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
getting assert error #2753
Comments
That's a |
+1 for me Flask==1.0.3 import asyncio
import nest_asyncio
nest_asyncio.apply(loop=asyncio.get_event_loop()) |
so it seems there's this thing that people try to use: https://github.com/erdewit/nest_asyncio |
@dogukankotan What's the exact error? Is it the same one as @himanshu4code or something different? I don't really trust |
I fixed the issue downgrade to 4.5.3. |
Closing since it sounds like this was caused by nest_asyncio. Feel free to reopen with more details if that's not the case. |
FYI: In vaex I solve it by patching Tornado: I opened an issue at erdewit/nest_asyncio#23 but it's neither's fault I think, it's just on the edge of what is possible. |
ERROR:tornado.application:Error in connection callback
Traceback (most recent call last):
File "/home/ongraph/Desktop/botuserv/lib/python3.7/site-packages/tornado/tcpserver.py", line 327, in _handle_connection
future = self.handle_stream(stream, address)
File "/home/ongraph/Desktop/botuserv/lib/python3.7/site-packages/tornado/httpserver.py", line 229, in handle_stream
conn.start_serving(self)
File "/home/ongraph/Desktop/botuserv/lib/python3.7/site-packages/tornado/http1connection.py", line 810, in start_serving
self.stream.io_loop.add_future(fut, lambda f: f.result())
File "/home/ongraph/Desktop/botuserv/lib/python3.7/site-packages/tornado/ioloop.py", line 693, in add_future
assert is_future(future)
AssertionError
when i checked i found out that future get object of Http1ServerConnection.
<Task pending coro=<HTTP1ServerConnection._server_request_loop() >>
The text was updated successfully, but these errors were encountered: