Code Monkey home page Code Monkey logo

Comments (3)

rchl avatar rchl commented on May 24, 2024 1

Doesn't look like it's specific to dynamodb-admin. I would guess that it's either due to node version or the fact that you are on Windows. Looks like ReadStream's (from the level-iterator-stream package) implementation of destroy() doesn't get registered by superclass. I don't know why though.

Your example works for me on Mac.
Node 8.11.3.
Dynalite 2.0.0

from dynamodb-admin.

rchl avatar rchl commented on May 24, 2024

Do you have a stacktrace? I don't see this specific code in source of dynalite.

I have just tried with latest dynalite (@2.0.0) and it seems to work for me.

from dynamodb-admin.

cdm430 avatar cdm430 commented on May 24, 2024

If I run dynalite using a globally installed version (just running dynalite from the command line), it seems to work fine. If I run dynalite via a simple node script like this:

var dynalite = require('dynalite'),
    dynaliteServer = dynalite({path: './mydb', createTableMs: 50})
 
// Listen on port 4567
dynaliteServer.listen(4567, function(err) {
  if (err) throw err
  console.log('Dynalite started on port 4567')
})

Then as soon as I launch dynamodb-admin (via
cross-env DYNAMO_ENDPOINT=http://localhost:4567 dynamodb-admin --open )
then dynalite crashes with the available trace as:

node_modules\level-iterator-stream\index.js:16
  this.on('end', this.destroy.bind(this, null, null))
                              ^

TypeError: Cannot read property 'bind' of undefined
    at new ReadStream (node_modules\level-iterator-stream\index.js:16:31)
    at LevelUP.readStream.LevelUP.createReadStream (node_modules\levelup\lib\levelup.js:274:10)
    at LevelUP.keyStream.LevelUP.createKeyStream (node_modules\levelup\lib\levelup.js:279:15)
    at Object.listTables node_modules\dynalite\actions\listTables.js:11:25)
    at IncomingMessage.<anonymous> (node_modules\dynalite\index.js:260:20)
    at emitNone (events.js:106:13)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

from dynamodb-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.