{"action":"created","issue":{"url":"https://api.github.com/repos/lucasmotta/dploy/issues/113","repository_url":"https://api.github.com/repos/lucasmotta/dploy","labels_url":"https://api.github.com/repos/lucasmotta/dploy/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/lucasmotta/dploy/issues/113/comments","events_url":"https://api.github.com/repos/lucasmotta/dploy/issues/113/events","html_url":"https://github.com/lucasmotta/dploy/issues/113","id":310874411,"number":113,"title":"Error when connecting to SFTP","user":{"login":"mdelorimier","id":1871952,"avatar_url":"https://avatars0.githubusercontent.com/u/1871952?v=4","gravatar_id":"","url":"https://api.github.com/users/mdelorimier","html_url":"https://github.com/mdelorimier","followers_url":"https://api.github.com/users/mdelorimier/followers","following_url":"https://api.github.com/users/mdelorimier/following{/other_user}","gists_url":"https://api.github.com/users/mdelorimier/gists{/gist_id}","starred_url":"https://api.github.com/users/mdelorimier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdelorimier/subscriptions","organizations_url":"https://api.github.com/users/mdelorimier/orgs","repos_url":"https://api.github.com/users/mdelorimier/repos","events_url":"https://api.github.com/users/mdelorimier/events{/privacy}","received_events_url":"https://api.github.com/users/mdelorimier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-03T15:00:32Z","updated_at":"2018-04-07T11:52:28Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI am having an issue when trying to connect to a SFTP server. This might be linked to the server's fingerprint not beeing known (it is present in ~/.ssh/known_hosts).\r\n\r\nUsing the ssh2 package, I am able to connect and get folder listing using the same configuration.\r\n\r\nHere is the configuration file :\r\n```\r\nstage:\r\n    scheme: sftp\r\n    host: \"***.com\"\r\n    port: 22\r\n    user: \"***\"\r\n    pass: \"***\"\r\n    check: true\r\n    path:\r\n        local: \"dist/browser/\"\r\n        remote: \"public_html/\"\r\n```\r\n\r\nHere is the error :\r\n\r\n```\r\nTypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\r\n    at Function.Buffer.from (buffer.js:161:9)\r\n    at new Buffer (buffer.js:131:17)\r\n    at onNEWKEYS (C:\\Users\\Mathieu de Lorimier\\AppData\\Roaming\\npm\\node_modules\\dploy\\node_modules\\ssh2\\lib\\Connection.js:2282:29)\r\n    at Parser.<anonymous> (C:\\Users\\Mathieu de Lorimier\\AppData\\Roaming\\npm\\node_modules\\dploy\\node_modules\\ssh2\\lib\\Connection.js:123:5)\r\n    at emitNone (events.js:105:13)\r\n    at Parser.emit (events.js:207:7)\r\n    at Parser.parsePacket (C:\\Users\\Mathieu de Lorimier\\AppData\\Roaming\\npm\\node_modules\\dploy\\node_modules\\ssh2\\lib\\Parser.js:468:12)\r\n    at Parser.execute (C:\\Users\\Mathieu de Lorimier\\AppData\\Roaming\\npm\\node_modules\\dploy\\node_modules\\ssh2\\lib\\Parser.js:249:14)\r\n    at Socket.<anonymous> (C:\\Users\\Mathieu de Lorimier\\AppData\\Roaming\\npm\\node_modules\\dploy\\node_modules\\ssh2\\lib\\Connection.js:523:18)\r\n    at emitOne (events.js:115:13)\r\n```\r\n\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/lucasmotta/dploy/issues/comments/379463955","html_url":"https://github.com/lucasmotta/dploy/issues/113#issuecomment-379463955","issue_url":"https://api.github.com/repos/lucasmotta/dploy/issues/113","id":379463955,"user":{"login":"mdelorimier","id":1871952,"avatar_url":"https://avatars0.githubusercontent.com/u/1871952?v=4","gravatar_id":"","url":"https://api.github.com/users/mdelorimier","html_url":"https://github.com/mdelorimier","followers_url":"https://api.github.com/users/mdelorimier/followers","following_url":"https://api.github.com/users/mdelorimier/following{/other_user}","gists_url":"https://api.github.com/users/mdelorimier/gists{/gist_id}","starred_url":"https://api.github.com/users/mdelorimier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdelorimier/subscriptions","organizations_url":"https://api.github.com/users/mdelorimier/orgs","repos_url":"https://api.github.com/users/mdelorimier/repos","events_url":"https://api.github.com/users/mdelorimier/events{/privacy}","received_events_url":"https://api.github.com/users/mdelorimier/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T11:52:28Z","updated_at":"2018-04-07T11:52:28Z","author_association":"NONE","body":"@daywalker2811 I don't beleive that is the issue : https://stackoverflow.com/a/11301675/643039"}}
{"actor":{"display_login":"mdelorimier"}}