Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: handle is not a Buffer / unsupported package type 0. #244

Open
alankent opened this issue Feb 1, 2016 · 0 comments
Open
Labels

Comments

@alankent
Copy link

alankent commented Feb 1, 2016

[Enter steps to reproduce below:]

  1. Create a new project
  2. Create "SFTP" configuration (using menu item) - fill in request fields (tested to work via WinSCP). This is connecting to a SFTP server in a Docker container, using Ubuntu.
  3. Click on "connect" in side panel with options of "connect", "edit configuration", and "close panel".
  4. I get the following stack trace.
  5. I repeated the above, and this time got "unsupported package type 0". Seems to altinate between "handle is not a buffer" and "unsupported package type 0".

Atom Version: 1.4.1
System: Microsoft Windows 7 Enterprise
Thrown From: remote-sync package, v3.5.0

Stack Trace

Uncaught Error: handle is not a Buffer

At C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\SFTP\SFTPv3.js:602

Error: handle is not a Buffer
    at SFTP.readdir (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\SFTP\SFTPv3.js:602:11)
    at ConnectorSFTP.module.exports.ConnectorSFTP.list (C:\Users\akent\.atom\packages\Remote-FTP\lib\connectors\sftp.js:154:15)
    at Client.<anonymous> (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:362:20)
    at Client.module.exports.Client._next (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:313:21)
    at Client.module.exports.Client._enqueue (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:324:9)
    at Client.<anonymous> (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:361:9)
    at Client.module.exports.Client.onceConnected (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:128:14)
    at Client.module.exports.Client.list (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:360:8)
    at Directory.module.exports.Directory.open (C:\Users\akent\.atom\packages\Remote-FTP\lib\directory.js:99:10)
    at ConnectorSFTP.<anonymous> (C:\Users\akent\.atom\packages\Remote-FTP\lib\client.js:239:15)
    at C:\Users\akent\.atom\packages\Remote-FTP\lib\connectors\sftp.js:56:16
    at SFTP.<anonymous> (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\Connection.js:836:9)
    at SFTP.g (events.js:260:16)
    at emitNone (events.js:67:13)
    at SFTP.emit (events.js:166:7)
    at SFTP._parse (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\SFTP\SFTPv3.js:955:16)
    at ChannelStream.<anonymous> (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\SFTP\SFTPv3.js:49:12)
    at emitOne (events.js:77:13)
    at ChannelStream.emit (events.js:169:7)
    at ChannelStream.emit (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\Channel.js:640:12)
    at Parser.<anonymous> (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\Channel.js:95:20)
    at emitOne (events.js:77:13)
    at Parser.emit (events.js:169:7)
    at Parser.parsePacket (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\Parser.js:607:12)
    at Parser.execute (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\Parser.js:249:14)
    at Socket.<anonymous> (C:\Users\akent\.atom\packages\remote-sync\node_modules\ssh2\lib\Connection.js:523:18)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at TCP.onread (net.js:523:20)

Commands

     -4:40.2.0 core:move-down (atom-text-editor.editor.is-focused)
     -4:39.7.0 core:move-right (atom-text-editor.editor.is-focused)
     -4:39.3.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)
     -4:38.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:36.8.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -4:36.6.0 core:move-left (atom-text-editor.editor.is-focused)
     -4:36 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)
  2x -4:33.6.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -4:33 core:move-left (atom-text-editor.editor.is-focused)
  4x -4:29.3.0 core:move-down (atom-text-editor.editor.is-focused)
     -4:26.8.0 core:save (atom-text-editor.editor.is-focused)
     -4:16.1.0 remote-ftp:toggle (atom-text-editor.editor.is-focused)
     -3:56.2.0 remote-ftp:connect (atom-text-editor.editor.is-focused)
 10x -3:40.2.0 remote-ftp:toggle (atom-text-editor.editor.is-focused)
     -1:34.2.0 tree-view:toggle-side (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:25.5.0 remote-ftp:toggle (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "remote-edit",
      "remote-sync"
    ]
  },
  "remote-sync": {}
}

Installed Packages

# User
Remote-FTP, v0.7.15

# Dev
No dev packages
@elistone elistone added the bug label May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants