While downloading multiple files, FTPException(Failure) is thrown
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
I am trying to read multiple RemoteFiles into InputStreams as described [here](https://github.com/hierynomus/sshj/issues/533#issuecomment-588125363).
The code works fine up to some point but suddenly fails by throwing FTPException as below.
```
...
2020-05-14 22:36:38,640 [debug] n.s.s.s.SFTPEngine - Sending Request{1049;OPEN}
2020-05-14 22:36:38,640 [debug] n.s.s.c.c.Window$Remote - Consuming by 51 down to 2044833
2020-05-14 22:36:38,652 [debug] n.s.s.c.c.Window$Local - Consuming by 17 down to 1619133
2020-05-14 22:36:38,652 [debug] n.s.s.s.PacketReader - Received HANDLE packet
2020-05-14 22:36:38,652 [debug] n.s.s.s.SFTPEngine - Sending Request{1050;OPEN}
2020-05-14 22:36:38,652 [debug] n.s.s.c.c.Window$Remote - Consuming by 51 down to 2044782
2020-05-14 22:36:38,663 [debug] n.s.s.c.c.Window$Local - Consuming by 17 down to 1619116
2020-05-14 22:36:38,663 [debug] n.s.s.s.PacketReader - Received HANDLE packet
2020-05-14 22:36:38,663 [debug] n.s.s.s.SFTPEngine - Sending Request{1051;OPEN}
2020-05-14 22:36:38,663 [debug] n.s.s.c.c.Window$Remote - Consuming by 51 down to 2044731
2020-05-14 22:36:38,674 [debug] n.s.s.c.c.Window$Local - Consuming by 17 down to 1619099
2020-05-14 22:36:38,674 [debug] n.s.s.s.PacketReader - Received HANDLE packet
2020-05-14 22:36:38,674 [debug] n.s.s.s.SFTPEngine - Sending Request{1052;OPEN}
2020-05-14 22:36:38,674 [debug] n.s.s.c.c.Window$Remote - Consuming by 51 down to 2044680
2020-05-14 22:36:38,685 [debug] n.s.s.c.c.Window$Local - Consuming by 17 down to 1619082
2020-05-14 22:36:38,685 [debug] n.s.s.s.PacketReader - Received HANDLE packet
2020-05-14 22:36:38,685 [debug] n.s.s.s.SFTPEngine - Sending Request{1053;OPEN}
2020-05-14 22:36:38,685 [debug] n.s.s.c.c.Window$Remote - Consuming by 51 down to 2044629
2020-05-14 22:36:38,696 [debug] n.s.s.c.c.Window$Local - Consuming by 28 down to 1619054
2020-05-14 22:36:38,696 [debug] n.s.s.s.PacketReader - Received STATUS packet
2020-05-14 22:36:38,697 [error] m.p.CustomJsonHttpErrorHandler - 7fn7ij306, Execution exception, [SFTPException: Failure], {}
net.schmizz.sshj.sftp.SFTPException: Failure
at net.schmizz.sshj.sftp.Response.error(Response.java:140)
at net.schmizz.sshj.sftp.Response.ensurePacketTypeIs(Response.java:117)
at net.schmizz.sshj.sftp.SFTPEngine.open(SFTPEngine.java:143)
at net.schmizz.sshj.sftp.SFTPEngine.open(SFTPEngine.java:149)
at net.schmizz.sshj.sftp.SFTPEngine.open(SFTPEngine.java:154)
```
In what case, does the client receive the Status packet and end up in failure?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.