-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issuequeuedThis issues is on the AWS team's backlogThis issues is on the AWS team's backlog
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
waitUntilObjectExists
method throws WaiterConfiguration.minDelay must be greater than 0
error if minDelay
is 0.5
.
I see you are using @smithy/util-waiter
which throws it here.
0.5
is greater than 0, the condition and error are not synced.
This means that I can't wait for an s3 object with an exponential backoff policy to start at 0.5 seconds.
Is there any workaround?
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v20.12.2
Reproduction Steps
call:
import {
type HeadObjectCommandInput,
S3Client,
waitUntilObjectExists
} from '@aws-sdk/client-s3';
const fileParams = {
Bucket: 'bucket-name',
Key: 'my-key'
} satisfies HeadObjectCommandInput;
await waitUntilObjectExists({
client,
minDelay: 0.5, // exponential backoff floor (seconds)
maxDelay: 1, // exponential backoff ceiling (seconds)
maxWaitTime: 30
}, fileParams);
Observed Behavior
Error: WaiterConfiguration.minDelay must be greater than 0
Expected Behavior
An exponential backoff policy should work, starting with 500ms delay
Possible Solution
No response
Additional Information/Context
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.p2This is a standard priority issueThis is a standard priority issuequeuedThis issues is on the AWS team's backlogThis issues is on the AWS team's backlog