You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering intermittent "The security token included in the request is expired" errors during an ongoing Amazon Transcribe streaming session.
The application is using the AWS SDK for Go, and credentials are provided via an IAM role attached to an ECS task.
My understanding is that the SDK should automatically refresh credentials. However, the error occurs mid-transcription, which leads me to wonder whether automatic credential refresh applies to long-lived HTTP/WebSocket connections such as Amazon Transcribe streaming sessions.
Could you please clarify:
Whether the Go SDK automatically refreshes credentials for long-lived streaming/WebSocket requests, or
Whether credentials must be manually refreshed and the connection re-established in this scenario?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am encountering intermittent "The security token included in the request is expired" errors during an ongoing Amazon Transcribe streaming session.
The application is using the AWS SDK for Go, and credentials are provided via an IAM role attached to an ECS task.
My understanding is that the SDK should automatically refresh credentials. However, the error occurs mid-transcription, which leads me to wonder whether automatic credential refresh applies to long-lived HTTP/WebSocket connections such as Amazon Transcribe streaming sessions.
Could you please clarify:
Whether the Go SDK automatically refreshes credentials for long-lived streaming/WebSocket requests, or
Whether credentials must be manually refreshed and the connection re-established in this scenario?
github.com/aws/aws-sdk-go-v2 v1.24.0
github.com/aws/aws-sdk-go-v2/config v1.25.10
github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.15.3
github.com/aws/aws-sdk-go-v2/credentials v1.16.8
Beta Was this translation helpful? Give feedback.
All reactions