From a3db85d8695dc5ed36265f80c2a0b40afc17d777 Mon Sep 17 00:00:00 2001 From: Ray Tiley Date: Mon, 14 Mar 2022 19:18:08 -0400 Subject: [PATCH] awstranscribe - increase presisigned url duration to 5 mins from 60s Have seen a few times where machines that are in perfect time sync with a good source the requests fail with `RequestExpired` errors. https://docs.aws.amazon.com/transcribe/latest/dg/CommonErrors.html While not perfect, bumping to five minutes gives more a chance that the signed requests to start streaming won't be expired. --- net/rusoto/src/aws_transcriber/imp.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/rusoto/src/aws_transcriber/imp.rs b/net/rusoto/src/aws_transcriber/imp.rs index ca51d3bb..19d1cd59 100644 --- a/net/rusoto/src/aws_transcriber/imp.rs +++ b/net/rusoto/src/aws_transcriber/imp.rs @@ -941,7 +941,8 @@ impl Transcriber { drop(settings); drop(state); - let url = signed.generate_presigned_url(&creds, &std::time::Duration::from_secs(60), true); + let url = + signed.generate_presigned_url(&creds, &std::time::Duration::from_secs(5 * 60), true); let (ws, _) = { let _enter = RUNTIME.enter();