sshnet / sshnet/SSH.NET

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

オープン
#720 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
4.4k
フォーク
993
平均マージ
9日 21時間
マージ済み PR(30日)
1

説明

_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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、新しいサーバーに対して client.DownloadFile("/absolute/path/to/file.csv", stream) を再現し、その後、GetSftpException と、レポートで言及されている response.StatusCode の処理を調査します。失敗するサーバーのレスポンスを、動作する SSH.NET サーバーおよび他のクライアントのレスポンスと比較します。レスポンスが Failure と報告される理由を特定し、具体的な修正またはより明確なエラー動作を確立できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。