aws-samples / aws-samples/amazon-nova-samples
Speech to speech - sample python nova_sonic_simple.py is giving OSError: Stream is completed and doesn't support further writes.
- Dominant language
- Jupyter Notebook
- Stars
- 452
- Forks
- 266
- PR merge metrics
- No merged PRs in 30d
Description
```
2025-07-16 22:46:14,096 - asyncio - ERROR - Task exception was never retrieved
future: exception=OSError("Stream is completed and doesn't support further writes.")>
Traceback (most recent call last):
File "/Users/luck/may_2025/amazon-nova-samples/speech-to-speech/workshops/python-server/.venv/lib/python3.13/site-packages/smithy_http/aio/crt.py", line 396, in _consume_body_async
dest.write(chunk)
~~~~~~~~~~^^^^^^^
File "/Users/luck/may_2025/amazon-nova-samples/speech-to-speech/workshops/python-server/.venv/lib/python3.13/site-packages/smithy_http/aio/crt.py", line 471, in write
raise OSError("Stream is completed and doesn't support further writes.")
OSError: Stream is completed and doesn't support further writes.
2025-07-16 22:45:07,579 - asyncio - ERROR - Future exception was never retrieved
future:
awscrt.exceptions.AwsCrtError: AWS_ERROR_HTTP_RST_STREAM_RECEIVED: Peer sent RST_STREAM to terminate HTTP-stream.
```
Contributor guide
Assessment
This issue has not been assessed yet.