Open
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
Hi 👋
I've seen this issue in the past, but they have all been closed. I am migrating from my app using SDK v2 to SDK v3.
I'm also updating nodejs version to 18, but it doesn't seem to work.
I've tried tinkering with config, adding fake credentials, etc. but I got nowhere.
If I use nodejs 16, it does work.
SDK version number
v3.231.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
18.12.1
Reproduction Steps
import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
const client = new DynamoDBClient({
endpoint: 'http://localhost:8000'
});
const ddbDocClient = DynamoDBDocument.from(client);
(async () => {
const result = await client.send(new ListTablesCommand({}));
// or const result = await ddbDocClient.send(new ListTablesCommand({}));
console.log(result);
})();
Observed Behavior
Error: connect ECONNREFUSED ::1:8000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8000,
'$metadata': { attempts: 1, totalRetryDelay: 0 }
}
Expected Behavior
The list of local dynamodb tables
Possible Solution
No response
Additional Information/Context
No response