Unexpectedly reached end of file error downloading file from HP Nonstop
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 4.4k
- Fork
- 993
- Merge medio
- 9g 21h
- PR unite (30g)
- 1
Descrizione
Hi together!
I've tried to download some files from a HP Nonstop SFTP server. A few of them I'm not able to download. The following stacktrace will be shown:
Renci.SshNet.Common.SshException: Unexpectedly reached end of file.
bei Renci.SshNet.Sftp.SftpFileReader.Read()
bei Renci.SshNet.SftpClient.InternalDownloadFile(String path, Stream output, SftpDownloadAsyncResult asyncResult, Action`1
downloadCallback)
bei Renci.SshNet.SftpClient.DownloadFile(String path, Stream output, Action`1 downloadCallback)
The call in my app is:
using (var fileStream = File.Create(localDestinationPath))
_sftpClient.DownloadFile(remotePath, fileStream);
I can download the same file with WinSCP client or if I switch in my test app to chilkat SFTP lib.
Do you have any idea, what's going wrong?
Best regards
Jochen
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da SftpFileReader.Read e SftpClient.InternalDownloadFile, i punti di ingresso indicati nello stack trace, e riproduci il malfunzionamento con il server SFTP HP Nonstop e i file interessati. Il lavoro è completato quando quei file vengono scaricati correttamente tramite SftpClient senza l’errore imprevisto di fine file, con copertura per la regressione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100