Traceback (most recent call last):


 "a.py", line 563, in <module>

loop.run_until_complete(main())


 "/usr/lib/python3.8/asyncio/base_events.py", line 608, in run_until_complete

return future.result()


 "a.py", line 548, in main

await
APP["Items"][hqone_Space].data[rec].stop()


 "~/.local/lib/python3.8/site-packages/aiortc/contrib/media.py", line 361, in stop

for packet in context.stream.encode(None):


 "av/stream.pyx", line 130, in av.stream.Stream.encode


 "av/codec/context.pyx", line 311, in av.codec.context.CodecContext.encode


 "av/audio/codeccontext.pyx", line 40, in av.audio.codeccontext.AudioCodecContext._prepare_frames_for_encode


 "av/audio/resampler.pyx", line 58, in av.audio.resampler.AudioResampler.resample
ValueError: Cannot flush AudioResampler before it is used.

Traceback (most recent call last):


 ".venv/lib/python3.8/site-packages/botocore/httpsession.py", line 314, in send

urllib_response = conn.urlopen(


 ".venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen

httplib_response = self._make_request(


 ".venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request

conn.request(method, url, **httplib_request_kw)


 ".venv/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request

super(HTTPConnection, self).request(method, url, body=body, headers=headers)


 ".pyenv/versions/3.8.5/lib/python3.8/http/client.py", line 1255, in request

self._send_request(method, url, body, headers, encode_chunked)


 ".venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 92, in _send_request

rval = super(AWSConnection, self)._send_request(


 ".pyenv/versions/3.8.5/lib/python3.8/http/client.py", line 1301, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)


 ".pyenv/versions/3.8.5/lib/python3.8/http/client.py", line 1250, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)


 ".venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 127, in _send_output

self._handle_expect_response(message_body)


 ".venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 170, in _handle_expect_response

self._send_message_body(message_body)


 ".venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 197, in _send_message_body

self.send(message_body)


 ".venv/lib/python3.8/site-packages/botocore/awsrequest.py", line 204, in send

return super(AWSConnection, self).send(str)


 ".pyenv/versions/3.8.5/lib/python3.8/http/client.py", line 963, in send

datablock = data.read(self.blocksize)


 ".pyenv/versions/3.8.5/lib/python3.8/tempfile.py", line 474, in func_wrapper

return func(*args, **kwargs)
ValueError: read of closed file
