My expression is like that:
sftp://hostname/path?username=username&password=password&fileName=fileName.txt&connectTimeout=10000&soTimeout=40000&timeout=40000&stepwise=false&maximumReconnectAttempts=4&autoCreate=false&strictHostKeyChecking=no&preferredAuthentications=publickey,password&disconnect=true&stepwise=false&throwExceptionOnConnectFailed=true&consumer.bridgeErrorHandler=true
I use this expression here:
from(GET_FILE_FROM_SFTP)
.log(LoggingLevel.INFO, DOCUMENT_RECONCILIATION_ROUTE, "Getting the file from SFTP")
.pollEnrich()
.simple("${exchangeProperty.sftpExpression}")
.timeout(20000L)
.to(SAVE_RECEIVED_IDS)
.end();
At first execution, it could get file. But for second time when i trigger again, it waits while putting logs like this:
Known host file not configured, using user known host file: C:\Users\caner/.ssh/known_hosts
And goes next route, but because file is empty, it cant go further.
Why cant it take the file for the second time? I removed file and put again to ftp but still cant get it.
When I give file name in that expression as another filename in same directory and try, it can get file.
Is there any lock for first file that it cant get again?