Currently, whenever the polling trigger is used in the SFTP component, an error "Cannot read property 'directory' of undefined" is produced.
Component Version
Version of the component running when the below steps to reproduce were performed: 1.4.6
Platform version running when/installation name where the below steps were reproduced: 22.14
Credentials used: Elastic.io SFTP server (sftp.elasticio.org)
Steps to Reproduce
Create a new flow
Set the first step to SFTP -> Poll Files.
Select any valid directory (e.g. /www/jacob) and select Emit Individually as the emit behavior.
Attempt to generate a sample.
Actual Result
The error Cannot read property 'directory' of undefined is generated.
The following appear in the logs:
Starting your Docker container ...
TypeError: Cannot read property 'directory' of undefined
at SftpPolling.getObjects (/home/apprunner/lib/utils/pollingUtil.js:18:49)
at SftpPolling.process (/home/apprunner/node_modules/@elastic.io/oih-standard-library/lib/triggers/getNewAndUpdated.js:33:47)
at TaskExec.process (/home/apprunner/lib/triggers/polling.js:8:24)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[INFO tini (1)] Spawned child process '/run.sh' with pid '6'
Starting application in apprunner...
Will try to start app at /home/apprunner
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
node: /usr/lib/libstdc++.so.6: no version information available (required by node)
invokeModuleFunction – init is not found
Checking if incoming messages is lightweight...
Fully initialized and waiting for messages
Client successfully connected
Starting processing Polling trigger
Error occurred during trigger or action processing
Unexpected error while processing Polling Trigger call
Component Bug Report
Description
Currently, whenever the polling trigger is used in the SFTP component, an error "Cannot read property 'directory' of undefined" is produced.
Component Version
sftp.elasticio.org
)Steps to Reproduce
/www/jacob
) and select Emit Individually as the emit behavior.Actual Result
Expected Result
Workaround(s)
Downgrade to version 1.4.5