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

AttributeError: 'NoneType' object has no attribute 'ws_connect' #21

Closed
simplextech opened this issue Dec 11, 2019 · 2 comments
Closed

Comments

@simplextech
Copy link

miguelgrinberg/python-engineio#152

I just started getting the error in the title. I'm fairly sure it's related to the upstream engineio issue but I wanted to validate.

Full error:

2019-12-11 01:06:19,073 [NodeServer] [ERROR] Task exception was never retrieved
future: <Task finished coro=<Controller.AmbientWeather() done, defined at ./ambientweather-poly.py:239> exception=AttributeError("'NoneType' object has no attribute 'ws_connect'")>
Traceback (most recent call last):
File "./ambientweather-poly.py", line 604, in AmbientWeather
await client.websocket.connect()
File "/usr/local/lib/python3.7/site-packages/aioambient/websocket.py", line 76, in connect
transports=["websocket"],
File "/usr/local/lib/python3.7/site-packages/socketio/asyncio_client.py", line 108, in connect
engineio_path=socketio_path)
File "/usr/local/lib/python3.7/site-packages/engineio/asyncio_client.py", line 76, in connect
url, headers, engineio_path)
File "/usr/local/lib/python3.7/site-packages/engineio/asyncio_client.py", line 251, in _connect_websocket
ws = await self.http.ws_connect(
AttributeError: 'NoneType' object has no attribute 'ws_connect'

@bachya
Copy link
Owner

bachya commented Dec 11, 2019

This isn't an issue with aioambient; as you've deduced, it's an issue with python-engineio.

@bachya bachya closed this as completed Dec 11, 2019
@bachya
Copy link
Owner

bachya commented Dec 11, 2019

That said, I’m going to need to pin the latest python-engineio version once the bug is fixed, so I’ll keep this issue open until that can be done.

@bachya bachya reopened this Dec 11, 2019
@bachya bachya closed this as completed Dec 11, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants