dynamodb-localhost
dynamodb-localhost copied to clipboard
Downloading jar over https protocol
This change was made to avoid the error when install process is executed:
Error: Error getting DynamoDb local latest tar.gz location: 301
at ClientRequest.
for request behind a proxy, update with the following:
http.get({
host: PROXY_HOST,
port: PROXY_PORT,
headers: {
'Proxy-Authorization': 'Basic ' + new Buffer(PROXY_USER + ':' + PROXY_PASSWORD).toString('base64')
},
path: downloadUrl
}, function (response) {
FYI: This package (dynamodb-localhost) doesn't appear to be maintained, with no new releases to NPM in over 4 years.
Solution: You can use aws-dynamodb-local, a maintained fork, instead. (Disclaimer: I am a contributor to this fork). It is a drop-in replacement for this package, and is updated to fix this bug. If you're using serverless-dynamodb-local, you can also replace that with it's equivalent serverless-dynamodb.
Migrating takes about 2 minutes, with a full guide in the README. Of course, it's all still open-source and MIT licensed. Ownership of this new package sits with a registered charity, that is committed to maintaining the package into the future and is open to contributions from the community.