$ ./test_lib_juju.py
Fatal write error on socket transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fadbb4c8ef0>
transport: <_SelectorSocketTransport fd=7>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/selector_events.py", line 700, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fadbb4c8ef0>
transport: <_SelectorSocketTransport closing fd=7>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/selector_events.py", line 700, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/sslproto.py", line 632, in _process_write_backlog
self._transport.write(chunk)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 704, in write
self._fatal_error(exc, 'Fatal write error on socket transport')
File "/usr/lib/python3.5/asyncio/selector_events.py", line 589, in _fatal_error
self._force_close(exc)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 601, in _force_close
self._loop.call_soon(self._call_connection_lost, exc)
File "/usr/lib/python3.5/asyncio/base_events.py", line 497, in call_soon
handle = self._call_soon(callback, args)
File "/usr/lib/python3.5/asyncio/base_events.py", line 506, in _call_soon
self._check_closed()
File "/usr/lib/python3.5/asyncio/base_events.py", line 334, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Task was destroyed but it is pending!
task: <Task pending coro=<WebSocketCommonProtocol.run() running at /usr/local/lib/python3.5/dist-packages/websockets/protocol.py:413> wait_for=<Future pending cb=[Task._wakeup()]>>
Fatal write error on socket transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fadbb4af3c8>
transport: <_SelectorSocketTransport fd=6>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/selector_events.py", line 700, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x7fadbb4af3c8>
transport: <_SelectorSocketTransport closing fd=6>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/selector_events.py", line 700, in write
n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/sslproto.py", line 632, in _process_write_backlog
self._transport.write(chunk)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 704, in write
self._fatal_error(exc, 'Fatal write error on socket transport')
File "/usr/lib/python3.5/asyncio/selector_events.py", line 589, in _fatal_error
self._force_close(exc)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 601, in _force_close
self._loop.call_soon(self._call_connection_lost, exc)
File "/usr/lib/python3.5/asyncio/base_events.py", line 497, in call_soon
handle = self._call_soon(callback, args)
File "/usr/lib/python3.5/asyncio/base_events.py", line 506, in _call_soon
self._check_closed()
File "/usr/lib/python3.5/asyncio/base_events.py", line 334, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Task was destroyed but it is pending!
task: <Task pending coro=<WebSocketCommonProtocol.run() running at /usr/local/lib/python3.5/dist-packages/websockets/protocol.py:413> wait_for=<Future pending cb=[Task._wakeup()]>>
You are trying to send an empty document, exiting.