Closed busticated closed 11 months ago
looks like things work if i:
index.js
like:process.env['AWS_ACCESS_KEY_ID'] = 'fakeawsid'
process.env['AWS_SECRET_ACCESS_KEY'] = 'fakeawssecret'
delay()
time to 5000
(5 sec) in index.js
herewith the original 1s delay time, i ran into sporadic errors like:
Error: connect ECONNREFUSED 127.0.0.1:4567
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 4567,
'$metadata': { attempts: 3, totalRetryDelay: 172 }
}
i'll pull together a PR with those + doc updates in case it's helpful.
Thank you.
hey there :wave:
thanks for this awesome lib - it's really making working w/ DynamoDB a joy š ā¤ļø i'm trying to get my project up and running under DynamoDB Local for testing, etc. to that end, my first stop was to check out the samples in this repo.
Describe the bug
using the "overview" sample (link), i'm getting an odd error on start-up: "CredentialsProviderError: The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile." given that this sample targets DynamoDB Local, i didn't think you needed to provide valid credentials - from docs:
edit: i should also note that i get this same error even after logging in using:
aws sso login --profile <my-profile>
Error details (click to expand)
``` >>make run node dist/index.js CredentialsProviderError: The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile. at resolveSSOCredentials (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js:33:15) at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/property-provider/dist-cjs/chain.js:12:33 at async coalesceProvider (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/property-provider/dist-cjs/memoize.js:14:24) at async SignatureV4.credentialProvider (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/property-provider/dist-cjs/memoize.js:33:24) at async SignatureV4.signRequest (/Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js:106:29) at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js:16:18 at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js:27:46 at async /Users/me/code/bust/dynamodb-onetable/samples/overview/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:7:26 at async Dynamo.send (file:///Users/me/code/bust/dynamodb-onetable/dist/mjs/Dynamo.js:82:16) at async Dynamo.createTable (file:///Users/me/code/bust/dynamodb-onetable/dist/mjs/Dynamo.js:19:16) { tryNextLink: false, '$metadata': { attempts: 1, totalRetryDelay: 0 } } ```
To Reproduce
using
node@18.18.2
andnpm@9.8.1
(the default that ships w/v18
atm)...repro steps:
aws_access_key_id
andaws_secret_access_key
key pairs set in your~/.aws/credentials
file$ git clone git@github.com:sensedeep/dynamodb-onetable.git
$ git checkout 028a644711ad7bd42671531c965a2ff8b2861e37
$ cd ./dynamodb-onetable/samples/overview
$ make configure && make build
$ make run
Expected behavior
Sample should run, tables and data should be created, logs should be printed to terminal
Environment (please complete the following information):
v14.1 (23B74)
[intel]v18.18.2
v2.7.1
v4.3.5