ROOT: skip environment lint, matches filter 'lint' .pkg: remove tox env folder /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.pkg py38: install_deps> python -I -m pip install coverage pytest pytest-aiohttp pytest-asyncio /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper .pkg: install_requires> python -I -m pip install 'setuptools>=61.0' .pkg: _optional_hooks> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: get_requires_for_build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: get_requires_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: freeze> python -m pip freeze --all .pkg: pip==24.3.1,setuptools==75.8.0,wheel==0.45.1 .pkg: prepare_metadata_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta .pkg: build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta py38: install_package_deps> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client ERROR: Ignored the following versions that require a different python version: 1.10.0 Requires-Python >=3.9; 1.10.1 Requires-Python >=3.9; 1.11.0 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement aiortc>=1.10.1 (from versions: 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9, 0.9.10, 0.9.11, 0.9.12, 0.9.13, 0.9.14, 0.9.15, 0.9.16, 0.9.17, 0.9.18, 0.9.19, 0.9.20, 0.9.21, 0.9.22, 0.9.23, 0.9.24, 0.9.25, 0.9.26, 0.9.27, 0.9.28, 1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0) ERROR: No matching distribution found for aiortc>=1.10.1 py38: exit 1 (1.11 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client pid=5862 py38: FAIL ✖ in 31.54 seconds py39: install_deps> python -I -m pip install coverage pytest pytest-aiohttp pytest-asyncio /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py39: install_package_deps> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client py39: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/3/crosslab_soa_client-0.0.0.tar.gz py39: freeze> python -m pip freeze --all py39: aiohappyeyeballs==2.6.1,aiohttp==3.11.16,aioice==0.9.0,aiortc==1.11.0,aiosignal==1.3.2,async-timeout==5.0.1,attrs==25.3.0,av==14.2.0,cffi==1.17.1,coverage==7.8.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/3/crosslab_soa_client-0.0.0.tar.gz#sha256=e322994a376dda8a9da4d29891dc28dd994b1d6c75da2f88eb730d7f14f36433,cryptography==44.0.2,dnspython==2.7.0,exceptiongroup==1.2.2,frozenlist==1.5.0,google-crc32c==1.7.1,idna==3.10,ifaddr==0.2.0,iniconfig==2.1.0,multidict==6.2.0,packaging==24.2,pip==24.3.1,pluggy==1.5.0,propcache==0.3.1,pycparser==2.22,pyee==13.0.0,pylibsrtp==0.11.0,pyOpenSSL==25.0.0,pytest==8.3.5,pytest-aiohttp==1.1.0,pytest-asyncio==0.26.0,python-dateutil==2.9.0.post0,setuptools==75.8.0,six==1.17.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,tomli==2.2.1,typing_extensions==4.13.0,wheel==0.45.1,yarl==1.18.3 py39: commands[0]> coverage run --source crosslab.soa_client -m pytest ============================= test session starts ============================== platform linux -- Python 3.9.21, pytest-8.3.5, pluggy-1.5.0 cachedir: .tox/py39/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: pyproject.toml plugins: asyncio-0.26.0, aiohttp-1.1.0 asyncio: mode=strict, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 6 items tests/test_device_handler.py .. [ 33%] tests/test_webrtc_connection.py ..FF [100%] =================================== FAILURES =================================== ___________________ test_webrtc_connection_video_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" with NoReferenceLeaks("crosslab"): await localService.setupConnection(local, serviceConfig) await remoteService.setupConnection(remote, serviceConfig) try: await wait([local.connect(), remote.connect()], asyncException) assert local.pc.getTransceivers()[0].direction == localReceiverDir assert remote.pc.getTransceivers()[0].direction == remoteReceiverDir await wait( [track.sendPacket.wait(), remoteService.recvPacket.wait()], asyncException, ) assert len(remoteService.received_frame_pts) == 1 finally: await wait([local.close(), remote.close()], asyncException) await localService.teardownConnection(local) > await remoteService.teardownConnection(remote) tests/test_webrtc_connection.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py39/lib/python3.9/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.9/asyncio/tasks.py:610: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1753 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport ___________________ test_webrtc_connection_video_only[False] ___________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" with NoReferenceLeaks("crosslab"): await localService.setupConnection(local, serviceConfig) await remoteService.setupConnection(remote, serviceConfig) try: await wait([local.connect(), remote.connect()], asyncException) assert local.pc.getTransceivers()[0].direction == localReceiverDir assert remote.pc.getTransceivers()[0].direction == remoteReceiverDir await wait( [track.sendPacket.wait(), remoteService.recvPacket.wait()], asyncException, ) assert len(remoteService.received_frame_pts) == 1 finally: await wait([local.close(), remote.close()], asyncException) await localService.teardownConnection(local) > await remoteService.teardownConnection(remote) tests/test_webrtc_connection.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py39/lib/python3.9/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.9/asyncio/tasks.py:610: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1753 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1753 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1753 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py39/lib/python3.9/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport =========================== short test summary info ============================ FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[True] FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[False] ========================= 2 failed, 4 passed in 36.38s ========================= /usr/lib/python3.9/logging/__init__.py:2141: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for=()]> cb=[_wait.._on_completion() at /usr/lib/python3.9/asyncio/tasks.py:509]> Task was destroyed but it is pending! task: wait_for=()]> cb=[_wait.._on_completion() at /usr/lib/python3.9/asyncio/tasks.py:509]> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> Task was destroyed but it is pending! task: wait_for=()]>> py39: exit 1 (38.09 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest pid=5922 py39: FAIL ✖ in 1 minute 20.91 seconds py310: install_deps> python -I -m pip install coverage pytest pytest-aiohttp pytest-asyncio /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py310: install_package_deps> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client py310: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/4/crosslab_soa_client-0.0.0.tar.gz py310: freeze> python -m pip freeze --all py310: aiohappyeyeballs==2.6.1,aiohttp==3.11.16,aioice==0.9.0,aiortc==1.11.0,aiosignal==1.3.2,async-timeout==5.0.1,attrs==25.3.0,av==14.2.0,cffi==1.17.1,coverage==7.8.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/4/crosslab_soa_client-0.0.0.tar.gz#sha256=e322994a376dda8a9da4d29891dc28dd994b1d6c75da2f88eb730d7f14f36433,cryptography==44.0.2,dnspython==2.7.0,exceptiongroup==1.2.2,frozenlist==1.5.0,google-crc32c==1.7.1,idna==3.10,ifaddr==0.2.0,iniconfig==2.1.0,multidict==6.2.0,packaging==24.2,pip==24.3.1,pluggy==1.5.0,propcache==0.3.1,pycparser==2.22,pyee==13.0.0,pylibsrtp==0.11.0,pyOpenSSL==25.0.0,pytest==8.3.5,pytest-aiohttp==1.1.0,pytest-asyncio==0.26.0,python-dateutil==2.9.0.post0,setuptools==75.8.0,six==1.17.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,tomli==2.2.1,typing_extensions==4.13.0,wheel==0.45.1,yarl==1.18.3 py310: commands[0]> coverage run --source crosslab.soa_client -m pytest ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.3.5, pluggy-1.5.0 cachedir: .tox/py310/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: pyproject.toml plugins: asyncio-0.26.0, aiohttp-1.1.0 asyncio: mode=strict, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 6 items tests/test_device_handler.py .. [ 33%] tests/test_webrtc_connection.py ..FF [100%] =================================== FAILURES =================================== ___________________ test_webrtc_connection_video_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py310/lib/python3.10/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.10/asyncio/tasks.py:570: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1758 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport ___________________ test_webrtc_connection_video_only[False] ___________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py310/lib/python3.10/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E asyncio.exceptions.TimeoutError /usr/lib/python3.10/asyncio/tasks.py:570: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1758 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1758 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1758 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py310/lib/python3.10/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport =========================== short test summary info ============================ FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[True] FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[False] ========================= 2 failed, 4 passed in 37.35s ========================= /usr/lib/python3.10/logging/__init__.py:2182: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.10/asyncio/tasks.py:475]> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.10/asyncio/tasks.py:475]> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> py310: exit 1 (39.12 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest pid=6063 py310: FAIL ✖ in 1 minute 21.52 seconds py311: install_deps> python -I -m pip install coverage pytest pytest-aiohttp pytest-asyncio /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py311: install_package_deps> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client py311: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/5/crosslab_soa_client-0.0.0.tar.gz py311: freeze> python -m pip freeze --all py311: aiohappyeyeballs==2.6.1,aiohttp==3.11.16,aioice==0.9.0,aiortc==1.11.0,aiosignal==1.3.2,attrs==25.3.0,av==14.2.0,cffi==1.17.1,coverage==7.8.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/5/crosslab_soa_client-0.0.0.tar.gz#sha256=e322994a376dda8a9da4d29891dc28dd994b1d6c75da2f88eb730d7f14f36433,cryptography==44.0.2,dnspython==2.7.0,frozenlist==1.5.0,google-crc32c==1.7.1,idna==3.10,ifaddr==0.2.0,iniconfig==2.1.0,multidict==6.2.0,packaging==24.2,pip==24.3.1,pluggy==1.5.0,propcache==0.3.1,pycparser==2.22,pyee==13.0.0,pylibsrtp==0.11.0,pyOpenSSL==25.0.0,pytest==8.3.5,pytest-aiohttp==1.1.0,pytest-asyncio==0.26.0,python-dateutil==2.9.0.post0,setuptools==75.8.0,six==1.17.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,typing_extensions==4.13.0,wheel==0.45.1,yarl==1.18.3 py311: commands[0]> coverage run --source crosslab.soa_client -m pytest ============================= test session starts ============================== platform linux -- Python 3.11.11, pytest-8.3.5, pluggy-1.5.0 cachedir: .tox/py311/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: pyproject.toml plugins: asyncio-0.26.0, aiohttp-1.1.0 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 6 items tests/test_device_handler.py .. [ 33%] tests/test_webrtc_connection.py ..FF [100%] =================================== FAILURES =================================== ___________________ test_webrtc_connection_video_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py311/lib/python3.11/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E TimeoutError /usr/lib/python3.11/asyncio/tasks.py:614: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1785 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport ___________________ test_webrtc_connection_video_only[False] ___________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py311/lib/python3.11/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E TimeoutError /usr/lib/python3.11/asyncio/tasks.py:614: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1785 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1785 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1785 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py311/lib/python3.11/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport =========================== short test summary info ============================ FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[True] FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[False] ========================= 2 failed, 4 passed in 35.91s ========================= /usr/lib/python3.11/logging/__init__.py:2185: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> py311: exit 1 (37.86 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest pid=6206 py311: FAIL ✖ in 1 minute 19.25 seconds py312: install_deps> python -I -m pip install coverage pytest pytest-aiohttp pytest-asyncio /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py312: install_package_deps> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client py312: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/6/crosslab_soa_client-0.0.0.tar.gz py312: freeze> python -m pip freeze --all py312: aiohappyeyeballs==2.6.1,aiohttp==3.11.16,aioice==0.9.0,aiortc==1.11.0,aiosignal==1.3.2,attrs==25.3.0,av==14.2.0,cffi==1.17.1,coverage==7.8.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/6/crosslab_soa_client-0.0.0.tar.gz#sha256=e322994a376dda8a9da4d29891dc28dd994b1d6c75da2f88eb730d7f14f36433,cryptography==44.0.2,dnspython==2.7.0,frozenlist==1.5.0,google-crc32c==1.7.1,idna==3.10,ifaddr==0.2.0,iniconfig==2.1.0,multidict==6.2.0,packaging==24.2,pip==24.3.1,pluggy==1.5.0,propcache==0.3.1,pycparser==2.22,pyee==13.0.0,pylibsrtp==0.11.0,pyOpenSSL==25.0.0,pytest==8.3.5,pytest-aiohttp==1.1.0,pytest-asyncio==0.26.0,python-dateutil==2.9.0.post0,six==1.17.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,typing_extensions==4.13.0,yarl==1.18.3 py312: commands[0]> coverage run --source crosslab.soa_client -m pytest ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0 cachedir: .tox/py312/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: pyproject.toml plugins: asyncio-0.26.0, aiohttp-1.1.0 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 6 items tests/test_device_handler.py .. [ 33%] tests/test_webrtc_connection.py ..FF [100%] =================================== FAILURES =================================== ___________________ test_webrtc_connection_video_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py312/lib/python3.12/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E TimeoutError /usr/lib/python3.12/asyncio/tasks.py:630: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1826 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport ___________________ test_webrtc_connection_video_only[False] ___________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py312/lib/python3.12/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def _wait_for_one(): f = await done.get() if f is None: # Dummy value from _on_timeout(). > raise exceptions.TimeoutError E TimeoutError /usr/lib/python3.12/asyncio/tasks.py:630: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1826 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1826 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1826 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py312/lib/python3.12/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport =========================== short test summary info ============================ FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[True] FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[False] ========================= 2 failed, 4 passed in 38.39s ========================= /usr/lib/python3.12/logging/__init__.py:2264: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.12/asyncio/tasks.py:534]> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.12/asyncio/tasks.py:534]> Task was destroyed but it is pending! task: wait_for=> py312: exit 1 (41.27 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest pid=6344 py312: FAIL ✖ in 1 minute 21.25 seconds py313: install_deps> python -I -m pip install coverage pytest pytest-aiohttp pytest-asyncio /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper py313: install_package_deps> python -I -m pip install 'aiortc>=1.10.1' crosslab_api_client py313: install_package> python -I -m pip install --force-reinstall --no-deps /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/7/crosslab_soa_client-0.0.0.tar.gz py313: freeze> python -m pip freeze --all py313: aiohappyeyeballs==2.6.1,aiohttp==3.11.16,aioice==0.9.0,aiortc==1.11.0,aiosignal==1.3.2,attrs==25.3.0,av==14.2.0,cffi==1.17.1,coverage==7.8.0,crosslab_api_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/api/python,crosslab_soa_client @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/.tmp/package/7/crosslab_soa_client-0.0.0.tar.gz#sha256=e322994a376dda8a9da4d29891dc28dd994b1d6c75da2f88eb730d7f14f36433,cryptography==44.0.2,dnspython==2.7.0,frozenlist==1.5.0,google-crc32c==1.7.1,idna==3.10,ifaddr==0.2.0,iniconfig==2.1.0,multidict==6.2.0,packaging==24.2,pip==24.3.1,pluggy==1.5.0,propcache==0.3.1,pycparser==2.22,pyee==13.0.0,pylibsrtp==0.11.0,pyOpenSSL==25.0.0,pytest==8.3.5,pytest-aiohttp==1.1.0,pytest-asyncio==0.26.0,python-dateutil==2.9.0.post0,six==1.17.0,test_helper @ file:///builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/helper/python-test-helper,typing_extensions==4.13.0,yarl==1.18.3 py313: commands[0]> coverage run --source crosslab.soa_client -m pytest ============================= test session starts ============================== platform linux -- Python 3.13.1, pytest-8.3.5, pluggy-1.5.0 cachedir: .tox/py313/.pytest_cache rootdir: /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python configfile: pyproject.toml plugins: asyncio-0.26.0, aiohttp-1.1.0 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 6 items tests/test_device_handler.py .. [ 33%] tests/test_webrtc_connection.py ..FF [100%] =================================== FAILURES =================================== ___________________ test_webrtc_connection_video_only[True] ____________________ tiebreaker = True @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py313/lib/python3.13/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = resolve = True async def _wait_for_one(self, resolve=False): # Wait for the next future to be done and return it unless resolve is # set, in which case return either the result of the future or raise # an exception. f = await self._done.get() if f is None: # Dummy value from _handle_timeout(). > raise exceptions.TimeoutError E TimeoutError /usr/lib/python3.13/asyncio/tasks.py:633: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1864 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) ~~~~~~~~~^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport ---------------------------- Captured log teardown ----------------------------- ERROR asyncio:base_events.py:1864 Task was destroyed but it is pending! task: wait_for=> ERROR asyncio:base_events.py:1864 Task was destroyed but it is pending! task: wait_for=> ___________________ test_webrtc_connection_video_only[False] ___________________ tiebreaker = False @pytest.mark.asyncio @pytest.mark.parametrize("tiebreaker", [True, False]) async def test_webrtc_connection_video_only(tiebreaker: bool): asyncException = AsyncException() serviceConfig = { "serviceType": "http://example.com/data-only", "serviceId": "data", "remoteServiceId": "data", } with open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "./h264_test.bin"), "rb", ) as f: track = DummyTrack(f) localService = ServiceStub("video", outTrack=track) remoteService = ServiceStub("video", receiveVideo=True) local = WebRTCPeerConnection() remote = WebRTCPeerConnection() local.on("error", lambda error: asyncException.set(error)) remote.on("error", lambda error: asyncException.set(error)) async def onLocalSignalingMessage(message: SignalingMessage): await remote.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) async def onRemoteSignalingMessage(message: SignalingMessage): await local.handleSignalingMessage( { "messageType": "signaling", "connectionUrl": "connection.url", "content": message["content"], "signalingType": message["signalingType"], } ) local.on("signaling", onLocalSignalingMessage) remote.on("signaling", onRemoteSignalingMessage) local.tiebreaker = tiebreaker remote.tiebreaker = not tiebreaker localReceiverDir = "sendrecv" if tiebreaker else "sendonly" remoteReceiverDir = "recvonly" if tiebreaker else "sendrecv" > with NoReferenceLeaks("crosslab"): tests/test_webrtc_connection.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py313/lib/python3.13/site-packages/test_helper/no_reference_leaks.py:67: in __exit__ raise exc_val tests/test_webrtc_connection.py:141: in test_webrtc_connection_video_only await wait( tests/helpers/async_exception.py:44: in wait result = await next(r) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = resolve = True async def _wait_for_one(self, resolve=False): # Wait for the next future to be done and return it unless resolve is # set, in which case return either the result of the future or raise # an exception. f = await self._done.get() if f is None: # Dummy value from _handle_timeout(). > raise exceptions.TimeoutError E TimeoutError /usr/lib/python3.13/asyncio/tasks.py:633: TimeoutError ----------------------------- Captured stderr call ----------------------------- handleSignalingMessage handleOptions handleSignalingMessage handleOptions makeOffer connectionstatechanged new new have-local-offer handleSignalingMessage handleOffer makeAnswer connectionstatechanged new new have-remote-offer connectionstatechanged new new stable connectionstatechanged new new stable handleSignalingMessage handleAnswer acceptAnswer connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting checking stable connectionstatechanged connecting completed stable connectionstatechanged connecting completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed stable connectionstatechanged connected completed closed connectionstatechanged connected completed closed connectionstatechanged closed closed closed connectionstatechanged closed closed closed connectionstatechanged closed completed closed connectionstatechanged closed closed closed ------------------------------ Captured log call ------------------------------- DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:261 handleOptions ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:199 makeOffer ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-local-offer ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:237 handleOffer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:212 makeAnswer ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new have-remote-offer ERROR asyncio:base_events.py:1864 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) ~~~~~~~~~^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged new new stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:188 handleSignalingMessage DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:244 handleAnswer DEBUG crosslab.soa_client.connection_webrtc:connection_webrtc.py:229 acceptAnswer INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1864 Exception in callback AsyncIOEventEmitter._emit_run..callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py:97 handle: .callback() at /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py:97> Traceback (most recent call last): File "/usr/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py", line 105, in callback self.emit("error", exc) ~~~~~~~~~^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/asyncio.py", line 70, in emit return super().emit(event, *args, **kwargs) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/base.py", line 223, in emit self._emit_handle_potential_error(event, args[0] if args else None) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/pyee/base.py", line 181, in _emit_handle_potential_error raise error File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/connection_webrtc.py", line 94, in _on_track transeiver = track.transceiver ^^^^^^^^^^^^^^^^^ AttributeError: 'RemoteStreamTrack' object has no attribute 'transceiver' INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting checking stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connecting completed stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed stable WARNING aiortc.rtcrtpsender:rtcrtpsender.py:475 RTCRtpsender(video) Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiortc/rtcrtpsender.py", line 359, in _run_rtp enc_frame = await self._next_encoded_frame(codec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiortc/rtcrtpsender.py", line 286, in _next_encoded_frame data = await self.__track.recv() ^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object NoneType can't be used in 'await' expression ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged connected completed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed completed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport INFO crosslab.soa_client.connection_webrtc:connection_webrtc.py:45 connectionstatechanged closed closed closed ERROR asyncio:base_events.py:1864 Task exception was never retrieved future: exception=ClientConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/logging.py", line 60, in flush await self.upstreamHandler(info) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/crosslab/soa_client/device_handler.py", line 73, in sendLogMessage await ws.send_json(loggingMessage) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 261, in send_json await self.send_str(dumps(data), compress=compress) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/client_ws.py", line 245, in send_str await self._writer.send_frame( data.encode("utf-8"), WSMsgType.TEXT, compress=compress ) File "/builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python/.tox/py313/lib/python3.13/site-packages/aiohttp/_websocket/writer.py", line 73, in send_frame raise ClientConnectionResetError("Cannot write to closing transport") aiohttp.client_exceptions.ClientConnectionResetError: Cannot write to closing transport =========================== short test summary info ============================ FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[True] FAILED tests/test_webrtc_connection.py::test_webrtc_connection_video_only[False] ========================= 2 failed, 4 passed in 38.79s ========================= /usr/lib/python3.13/logging/__init__.py:2243: RuntimeWarning: coroutine 'CrosslabHandler.flush' was never awaited h.flush() RuntimeWarning: Enable tracemalloc to get the object allocation traceback Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.13/asyncio/tasks.py:521]> Task was destroyed but it is pending! task: wait_for= cb=[_wait.._on_completion() at /usr/lib/python3.13/asyncio/tasks.py:521]> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> Task was destroyed but it is pending! task: wait_for=> py313: exit 1 (40.66 seconds) /builds/FakIA/fachgebiet-iks/goldi/goldi2/crosslab/clients/soa/python> coverage run --source crosslab.soa_client -m pytest pid=6482 py313: FAIL ✖ in 1 minute 19.31 seconds coverage: install_deps> python -I -m pip install coverage coverage: freeze> python -m pip freeze --all coverage: coverage==7.8.0,pip==24.3.1,setuptools==75.8.0,wheel==0.45.1 coverage: commands[0]> coverage combine Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-1.5922.XaisAvWx Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-1.6063.XhawmRbx Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-1.6206.XnQejLTx Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-1.6344.XtAOZsfx Combined data file .coverage.runner-hyvuztwq-project-4590-concurrent-1.6482.XuclWZXx coverage: commands[1]> coverage report Name Stmts Miss Cover ---------------------------------------------------------------------------- src/crosslab/soa_client/__init__.py 0 0 100% src/crosslab/soa_client/connection.py 58 12 79% src/crosslab/soa_client/connection_webrtc.py 206 23 89% src/crosslab/soa_client/device_handler.py 143 32 78% src/crosslab/soa_client/logging.py 47 7 85% src/crosslab/soa_client/message_handling.py 0 0 100% src/crosslab/soa_client/messages.py 46 0 100% src/crosslab/soa_client/service.py 16 3 81% src/crosslab/soa_client/test_helper/__init__.py 2 0 100% src/crosslab/soa_client/test_helper/connection_stub.py 28 20 29% src/crosslab/soa_client/test_helper/dummy_track.py 23 4 83% src/crosslab/soa_client/test_helper/service_stub.py 92 9 90% ---------------------------------------------------------------------------- TOTAL 661 110 83% coverage: commands[2]> coverage xml Wrote XML report to coverage.xml  py38: FAIL code 1 (31.54 seconds) py39: FAIL code 1 (80.91=setup[42.82]+cmd[38.09] seconds) py310: FAIL code 1 (81.52=setup[42.40]+cmd[39.12] seconds) py311: FAIL code 1 (79.25=setup[41.38]+cmd[37.86] seconds) py312: FAIL code 1 (81.25=setup[39.98]+cmd[41.27] seconds) py313: FAIL code 1 (79.31=setup[38.65]+cmd[40.66] seconds) coverage: OK (6.00=setup[4.94]+cmd[0.24,0.43,0.38] seconds) evaluation failed :( (439.92 seconds)