diff --git a/src/algebra/secrets.rs b/src/algebra/secrets.rs index 49bb044..cf3ea4c 100644 --- a/src/algebra/secrets.rs +++ b/src/algebra/secrets.rs @@ -79,6 +79,7 @@ impl SecretsClient { let secret = response.json().await; let secret: Secret = secret.map_err(|err| { + warn!("Failed to deserialize response: {err}"); InternalError::serialize_error(&format!("Failed to deserialize response: {err}"), None) })?; @@ -126,6 +127,7 @@ impl SecretsClient { })?; response.json().await.map_err(|err| { + warn!("Failed to deserialize response: {err}"); InternalError::serialize_error(&format!("Failed to deserialize response: {err}"), None) }) } diff --git a/src/service/mod.rs b/src/service/mod.rs index 45184c0..14ddcb3 100644 --- a/src/service/mod.rs +++ b/src/service/mod.rs @@ -32,7 +32,7 @@ impl AppState { let retry_policy = ExponentialBackoff::builder().build_with_max_retries(config.max_retries()); let client = Client::builder() - .timeout(Duration::from_millis(config.timeout())) + .timeout(Duration::from_secs(config.timeout())) .build() .map_err(|e| InternalError::io_err(e.to_string().as_str(), None))?; let client = ClientBuilder::new(client)