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

Error "AttributeError: 'NoneType' object has no attribute 'send'" #44

Open
Avarong opened this issue Apr 16, 2020 · 0 comments
Open

Error "AttributeError: 'NoneType' object has no attribute 'send'" #44

Avarong opened this issue Apr 16, 2020 · 0 comments

Comments

@Avarong
Copy link

Avarong commented Apr 16, 2020

When trying to use websockets.py for subscribing to idex data, ia have an error:
"
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/untitled/IDEXbot.py", line 141, in
loop.run_until_complete(main())
File "C:\Users\Administrator\miniconda3\lib\asyncio\base_events.py", line 583, in run_until_complete
return future.result()
File "C:/Users/Administrator/PycharmProjects/untitled/IDEXbot.py", line 97, in main
await ism.subscribe(SubscribeCategory.markets,subscribe_list,['market_cancels', 'market_orders', 'market_trades'])
File "C:\Users\Administrator\PycharmProjects\untitled\idex\asyncio\websockets.py", line 246, in subscribe
await self._conn.send_message(category, req_msg)
File "C:\Users\Administrator\PycharmProjects\untitled\idex\asyncio\websockets.py", line 144, in send_message
await self._socket.send(socket_msg)
AttributeError: 'NoneType' object has no attribute 'send'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000000E14FE061C8>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000000E14FDF4358>, 355.937)]']
connector: <aiohttp.connector.TCPConnector object at 0x000000E14FE06208>
"
How should i fix that?

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