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

Error when reading file with spaces #283

Open
coderade opened this issue Apr 2, 2018 · 2 comments
Open

Error when reading file with spaces #283

coderade opened this issue Apr 2, 2018 · 2 comments

Comments

@coderade
Copy link

coderade commented Apr 2, 2018

When I try to read a file with spaces on the name, like the following example:

let filePath = 'TEST_FILE 2018-04-02.csv';
FtpClient.get(filePath, (err, socket) => {
        if (err) {
          console.warn(err);
          return;
        }
}

I'm receiving the error:

Error: 550 Failed to open file. at Ftp.parse (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/jsftp/lib/jsftp.js:223:11) at Ftp.parseResponse (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/jsftp/lib/jsftp.js:146:8) at Stream.pipeline.on.data (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/jsftp/lib/jsftp.js:112:10) at Stream.emit (events.js:180:13) at ResponseParser.reemit (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/duplexer/index.js:70:25) at ResponseParser.emit (events.js:180:13) at readableAddChunk (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_readable.js:195:16) at ResponseParser.Readable.push (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_readable.js:162:10) at ResponseParser.Transform.push (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_transform.js:145:32) at ResponseParser.<anonymous> (/home/coderade/repo/work/rumo/Supervisorio/nodejs_gateway/node_modules/ftp-response-parser/index.js:62:12) {code: 550, stack: Error: 550 Failed to open file. at Ftp.parse (…/node_modules/ftp-response-parser/index.js:62:12), message: 550 Failed to open file.}

There is any way to escape this? Is this the expected behaviour?

@nitti87
Copy link

nitti87 commented Sep 1, 2021

Did you fix it?

@princevora
Copy link

i am having this same issue when i try to fetch files with space like "MyFOlder (1)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants