Skip to content
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

RuntimeWarning: coroutine 'EventSourceResponse.send' was never awaited #80

Closed
d21d3q opened this issue Mar 10, 2018 · 1 comment
Closed

Comments

@d21d3q
Copy link
Contributor

d21d3q commented Mar 10, 2018

Problem occurred yesterday in my project, I spent half day undoing commits to have it back working...
Now I tried to run simple.py demo from this repo and I'm having the same problem.

Steps to reproduce

git clone <aiohttp_sse>
cd aiohttp_sse
virtualenv -p python3.6 venv
source venv/bin/activate
pip install aiohttp aiohttp_sse
python examples/simple/py

and after opening localhost:8080/index browser shows only Response from server:
and console shows this output:

======== Running on http://127.0.0.1:8080 ========  
(Press CTRL+C to quit)                              
foo                                                 
examples/simple.py:12: RuntimeWarning: coroutine 'EventSourceResponse.send' was never awaited
  resp.send('foo {}'.format(i))                     
foo                                                 
foo                                                 
...

wireshark doesn't show any traffic after GET /hello. only some TCP ACK.
is it possible that it crashes somewhere inside aiohttp?

@d21d3q
Copy link
Contributor Author

d21d3q commented Mar 10, 2018

And here is origin of problem. aiohttp changed api

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

No branches or pull requests

1 participant