Skip to content

client.DownloadFile('/my/absolute/path', stream) throwing empty ssh.net exception (staus code "Failure") #720

Open

Description

@squarewave24
_client.DownloadFile("/absolute/path/to/file.csv", stream)

I confirmed file, path, authentication, filname is ok.
I can download this file using other clients.
The destination supports multiple ftp servers, the old servers still work using ssh.net
the new server where these files get replicated are throwing this vague exception.
new servers work in other clients.

after stepping through this code locally, i can narrow it down to GetSftpException => response.StatusCode "Failure".

image

so it throws this generic exception with no message

image

stepped through it like 20x. can't see why the status code gets assigned a "Failiure" :(

using your latest source code as of today

Activity

  1. drieseng commented on Dec 20, 2020

    @drieseng
    Member

    @squarewave24 Do you have a (non-production) server I could use to reproduce this issue? Please contact me in private to share the details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions