SFTP NOde unable to download file

Describe the problem/error/question

Unable to download a file with SFTP
First credential is good i can acces and list folder is not a right problem with another tool account can download file.
When i use downlaod file node a get this error ( see capture ]

TypeError: isDate is not a function
    at attrsToBytes (/usr/lib/node_modules/n8n/node_modules/ssh2/lib/protocol/SFTP.js:2492:45)
    at SFTP.open (/usr/lib/node_modules/n8n/node_modules/ssh2/lib/protocol/SFTP.js:331:15)
    at ReadStream.open (/usr/lib/node_modules/n8n/node_modules/ssh2/lib/protocol/SFTP.js:3706:13)
    at new ReadStream (/usr/lib/node_modules/n8n/node_modules/ssh2/lib/protocol/SFTP.js:3696:10)
    at SFTP.createReadStream (/usr/lib/node_modules/n8n/node_modules/ssh2/lib/protocol/SFTP.js:305:12)
    at /usr/lib/node_modules/n8n/node_modules/ssh2-sftp-client/src/index.js:478:25
    at new Promise (<anonymous>)
    at SftpClient.get (/usr/lib/node_modules/n8n/node_modules/ssh2-sftp-client/src/index.js:474:12)
    at ExecuteContext.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Ftp/Ftp.node.ts:637:21)
    at WorkflowExecute.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9)
    at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27
    at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2158:11

Please share your workflow

My workflow


Information on your n8n setup

  • **n8n version: 1.105.3 (Self Hosted)
  • **Database (default: SQLite): SQLITE
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): yes
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • **Operating system: Debian 12.11

Please show json input at FTP1. It’s look like your FTP node output with three items, so you may need to add loop node to download all of them or other mechanism to chose what file from what item you need to download

like this ?


Ok this morning it’s work !
and i do nothing more on this weekend so i do not know why :melting_face:

Congratulations