Skip to content

TypeError: this.buffers[pos.buf].get is not a function #20

@64jcl

Description

@64jcl

Running the simple example and connecting to it with e.g. Putty kills the server with the following error after it has returned some data:

.. node_modules\telnet\node_modules\buffers\index.js:185
return this.buffers[pos.buf].get(pos.offset);

TypeError: this.buffers[pos.buf].get is not a function
at Buffers.get (C:\Users\jcl\AppData\Roaming\npm\node_modules\telnet\node_modules\buffers\index.js:185:34)
at parse (C:\Users\jcl\AppData\Roaming\npm\node_modules\telnet\lib\telnet.js:145:15)
at Socket. (C:\Users\jcl\AppData\Roaming\npm\node_modules\telnet\lib\telnet.js:201:11)
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:548:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions