client.DownloadFile('/my/absolute/path', stream) throwing empty ssh.net exception (staus code "Failure")
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 4.4k
- Forks
- 993
- Ø Merge
- 9 T. 21 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
_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".

so it throws this generic exception with no message

stepped through it like 20x. can't see why the status code gets assigned a "Failiure" :(
using your latest source code as of today
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, client.DownloadFile("/absolute/path/to/file.csv", stream) gegen den neueren Server zu reproduzieren, und untersuche dann GetSftpException sowie die im Bericht erwähnte Verarbeitung von response.StatusCode. Vergleiche die Antwort des fehlschlagenden Servers mit der eines funktionierenden SSH.NET-Servers und mit anderen Clients. Die Aufgabe ist abgeschlossen, wenn festgestellt wurde, warum die Antwort als Failure gemeldet wird, und ein konkreter Fix oder ein klareres Fehlerverhalten festgelegt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- networking
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100