FluentFTP: IBM FTP Server returns error: File must be specified by library/file.member
FTP Server OS: IBM AS400
FTP Server Type: IBM OS400
Client Computer OS: Windows
FluentFTP Version: Tried with 47.1.0/48.0.3 (same behaviour on both)
Framework: .NETCore3.1
I am from Azure logic Apps team. We use the library in the FTP connector there. We have a customer who faces the error File must be specified by library/file.member regularly in different operations.
The customer had an older version earlier 35.2.2 and the issue wasn’t happening there. Also upon further investigaton, we noticed this only happens when we use OpenRead() on the same connection and we also see some stale data in the logs, so probably has something to do with OpenRead and stale connections. Sharing the entire logs below. Let me know if you need anymore information
Logs :
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 27
Commits related to this issue
- Merge pull request #1459 from FanDjango/master Async code was missing for OS400 server handler re. #1385 — committed to robinrodricks/FluentFTP by FanDjango 3 years ago
Yes, you can close it, we are implementing the changes as suggested by you, we can reopen if we see further issues
It will consume the reply coming out from the respective RETR command, which is what is causing the stale data. Make sure to check the reply you receive for a good or bad reply code etc. and act accordingly. The logic of what to do after RETR is by now so complicated, it is incorporated in higher up code. But for relatively stable connections, you can go easy. Note that our internal
GetReply(...)can also be called in a mode that can time out if no reply ever arrives - which this workaround cannot do.A look at the source code might help.