-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `send_data' for nil:NilClass #94
Comments
seeing this as well, where there any resolutions on this? |
I'm seeing this as well |
I was experiencing this issue when attempting to iterate over all files within a directory. I was able to connect to the server, When I first saw this error, I was using net-sftp version Here is my Net::SFTP.start(credentials.hostname, credentials.username, { password: credentials.password, port: credentials.sftp_port, timeout: 60, append_all_supported_algorithms: true, verbose: :debug, keepalive: true, keepalive_interval: 15, non_interactive: true }) { |sftp| sftp.dir.entries('/Folder') { |entry| puts entry.name } }
Since this issue was only affecting one directory, I suspected it had to do with the number of files within it. I resolved this issue by removing hundreds of files on the remote server (through a web portal) that I didn't need. I hope this helps someone. |
I fixed the same problem by limiting the concurrency of |
I fixed it as below: Replaced:
With:
Source: Stackoverflow |
Null check is missing, I keep seeing this error.
The text was updated successfully, but these errors were encountered: