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
Details of the browser/Node.js/ReactNative version
v20.17.0
Reproduction Steps
import{waitUntilObjectNotExists,S3Client}from"@aws-sdk/client-s3";constmain=async()=>{awaitwaitUntilObjectNotExists({client: newS3Client({})},{Key: "some-key"});};// Call function if run directlyimport{fileURLToPath}from"url";if(process.argv[1]===fileURLToPath(import.meta.url)){main();}
Observed Behavior
Waiter should fail immediately due to missing param.
Expected Behavior
Waiter hangs forever.
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered:
In JSv3, waiters requires maxWaitTime field in waiter configuration because the bare-bones modular client does not include the waitFor operation by default. This is similar to delay and maxAttempts fields in JSv2 waiters.
If you have the maxWaitTime field in your waiter configuration and the client is missing the Bucket property, you will encounter a waiter timeout error. This is how waiters are designed to operate.
However, there's room for improvements in our waiter docs, particularly in providing examples. I created this new issue to address the need for better documentation on waiters.
Closing this issue now.
aBurmeseDev
added
closing-soon
This issue will automatically close in 4 days unless further comments are made.
p2
This is a standard priority issue
and removed
investigating
Issue is being investigated and/or work is in progress to resolve the issue.
labels
Sep 23, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
When
waitUntilObjectNotExists
is called without providing aBucket
, it hangs indefinitely.Regression Issue
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.17.0
Reproduction Steps
Observed Behavior
Waiter should fail immediately due to missing param.
Expected Behavior
Waiter hangs forever.
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: