question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

serverless dynamodb install fails

See original GitHub issue

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.<anonymous> (/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.<anonymous> (/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?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rallarsvingencommented, Mar 20, 2019

Edit config.json, “download_url” change to https.

1reaction
nadeemjacommented, Sep 10, 2017

Solved by yarn add serverless-dynamodb-local@0.2.25

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] sls dynamodb install not working - Dynobase
Run "serverless help" for a list of all available commands. is pretty known problem. This error originates from serverless-dynamodb-local Serverless' Framework ...
Read more >
serverless dynamodb install fails · Issue #126 - GitHub
Here is the stacktrace: $ sls dynamodb install Error: Error getting DynamoDb local latest tar.gz location: 307 at ClientRequest.<anonymous> (/ ...
Read more >
serverless dynamodb start --migrate error - Stack Overflow
You need to follow this steps to fix it: Navigate to your .dynamoDB folder on your terminal and run the following command. wget...
Read more >
99xt/serverless-dynamodb-local - Gitter
Hi there! Troubles during migration. My Dynamodb is up & running locally. Dynamodb is already installed on path! Dynamodb Local Started, Visit: http: ......
Read more >
Error: spawn serverless ENOENT
Error: spawn serverless ENOENT Using the below ve… ... dynamodb uninstall npm install serverless-dynamodb-local@0.2.30 sls dynamodb install.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found