We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6f48a commit 88f6760Copy full SHA for 88f6760
supplemental-docs/EFFECTIVE_PRACTICES.md
@@ -191,7 +191,7 @@ return a byte stream.
191
Although awaiting such a request will return an HTTP status code and response headers,
192
193
```ts
194
-const getObjectResponse = client.send(GetObjectCommand({ Bucket, Key }));
+const getObjectResponse = await client.send(GetObjectCommand({ Bucket, Key }));
195
196
console.log(getObjectResponse.$metadata.httpStatusCode);
197
// ⚠️ byte stream is unhandled, leaving a socket in use.
0 commit comments