99x / 99x/serverless-dynamodb-local
serverless dynamodb install fails
- Dominant language
- JavaScript
- Stars
- 621
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
Node version: 6.10.30
Yarn version: 0.27.5
Serverless version: 1.20.2
serverless-dynamodb-local version: 1.0.0
Seems related to previous isses https://github.com/99xt/serverless-dynamodb-local/issues/70 & https://github.com/99xt/serverless-dynamodb-local/issues/65.
Here is the stacktrace:
```
$ sls dynamodb install
Error: Error getting DynamoDb local latest tar.gz location: 307
at ClientRequest. (/Users/daviskoh/project/node_modules/dynamodb-localhost/dynamodb/installer.js:14:26)
at ClientRequest.g (events.js:292:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20)
_http_client.js:54
throw new Error('Protocol "' + protocol + '" not supported. ' +
^
Error: Protocol "https:" not supported. Expected "http:"
at new ClientRequest (_http_client.js:54:11)
at Object.exports.request (http.js:31:10)
at Object.exports.get (http.js:35:21)
at ClientRequest. (/Users/daviskoh/project/node_modules/dynamodb-localhost/dynamodb/installer.js:16:18)
at ClientRequest.g (events.js:292:16)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at Socket.socketOnData (_http_client.js:362:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20)
error Command failed with exit code 1.
```
Is this another issue w/ the dependency https://github.com/99xt/dynamodb-localhost?
Contributor guide
Research direction
Start by running `sls dynamodb install` with the versions listed in the issue, then inspect the stack-trace entry in `dynamodb-localhost/dynamodb/installer.js`. Confirm the redirect and HTTPS failure, and consider the issue complete when DynamoDB Local installs successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript, node.js
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100