aws-samples / aws-samples/amazon-nova-samples

I am getting a model timeout

Open
#147 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
452
Forks
266
PR merge metrics
No merged PRs in 30d

Description

After 8 minutes (more or less) I am getting a model timeout like this one.

`Error processing response stream for session j7WimTYOfJYKQw4VAAAD: ModelTimeoutException: Model has timed out in processing the request. Try your request again.
at de_ModelTimeoutExceptionRes (/home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1632:21)
at de_ModelTimeoutException_event (/home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1940:10)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1819:32
at async Object.deserializer (/home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js:127:37)
at async SmithyMessageDecoderStream.asyncIterator (/home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/node_modules/@smithy/eventstream-codec/dist-cjs/index.js:438:28)
at async NovaSonicBidirectionalStreamClient.processResponseStream (/home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/dist/client.js:403:30)
at async NovaSonicBidirectionalStreamClient.initiateSession (/home/ubuntu/PROJECTS/AI/VOICE/websocket-nodejs/dist/client.js:270:13) {
'$fault': 'client',
'$metadata': {
httpStatusCode: undefined,
requestId: undefined,
extendedRequestId: undefined,
cfId: undefined
}
}
Error in session: {
source: 'responseStream',
message: 'Error processing response stream',
details: 'Model has timed out in processing the request. Try your request again.'
}
`

How can I overcome this? My application will need like minimum one hour.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.