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

File resume is currently not supported #763

Closed
joneldiablo opened this issue Feb 18, 2019 · 4 comments
Closed

File resume is currently not supported #763

joneldiablo opened this issue Feb 18, 2019 · 4 comments

Comments

@joneldiablo
Copy link

Hi, I'm having this error sometimes: "File resume is currently not supported". I have a recursive function which use ssh.putFile while upload many files:

const bubble = (track, i) => {
  let dir = sourceDirectoryName + '/' + newtrackname, resourcesDirectory + '/' + newtrackname;
  ssh.putFile(dir, fastPut)
    .then(function (success) {
          if ((i+1) < length) {
            i++;
            setTimeout(() => bubble(result[i], i), 100);
          }
    });
}
bubble(track[0],0);
@mscdex
Copy link
Owner

mscdex commented Feb 18, 2019

Duplicate of mscdex/ssh2-streams#118

@mscdex mscdex marked this as a duplicate of mscdex/ssh2-streams#118 Feb 18, 2019
@mscdex mscdex closed this as completed Feb 18, 2019
@joneldiablo
Copy link
Author

so, this repo is the same ssh2-streams?

@unknownbrackets
Copy link

No, but putFile seems to come from node-ssh, i.e. steelbrain/node-ssh#131. It might help to give more detail when reporting issues, especially to a library you're not even using directly.

It seems the really, you're using sftp.fastPut( (indirectly):
https://github.com/steelbrain/node-ssh/blob/b02e8088f287f3ee2697f67ab94ec9fc4579f309/src/index.js#L208

"File resume is currently not supported" doesn't return any results on google, let alone in any of these repos. My guess is it's probably coming from the ssh server you connected to, rather than from the library you're using to connect. You may not be able to use sftp.fastPut.

-[Unknown]

@joneldiablo
Copy link
Author

thanks you so much, sorry for the inconvenience.

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