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

Fails on WebSocket disconnect in aiohttp #48

Closed
voronin-opensoft opened this issue May 20, 2017 · 3 comments
Closed

Fails on WebSocket disconnect in aiohttp #48

voronin-opensoft opened this issue May 20, 2017 · 3 comments
Assignees
Labels

Comments

@voronin-opensoft
Copy link
Contributor

voronin-opensoft commented May 20, 2017

Hello. Python-engineio fails on Websocket disconnect in https://github.com/miguelgrinberg/python-engineio/blob/v1.5.2/engineio/async_aiohttp.py#L111
cause incorrect data type (integer 1001).
It affects 1.5 version only

@miguelgrinberg
Copy link
Owner

@voronin-opensoft can you add a complete stack trace of the error please? Thanks.

@miguelgrinberg miguelgrinberg self-assigned this May 20, 2017
@miguelgrinberg
Copy link
Owner

miguelgrinberg commented May 29, 2017

I was able to reproduce this, here is the stack trace:

Task exception was never retrieved
future: <Task finished coro=<WebSocket.wait() done, defined at /python-engineio/engineio/async_aiohttp.py:107> exception=OSError()>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/python-engineio/engineio/async_aiohttp.py", line 112, in wait
    raise IOError()
OSError

@miguelgrinberg
Copy link
Owner

miguelgrinberg commented May 30, 2017

This turned out to be a bug in asyncio. Here is the bug report I filed.

I will add a workaround in the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants