Code Monkey home page Code Monkey logo

Comments (4)

wakproductions avatar wakproductions commented on August 17, 2024 1

I think I resolved the issue. Previously I was using code similar to this to perform the upload:

Net::SFTP.start(...) do |sftp|
sftp.file.open(destination, 'w') do |handle|
  handle.puts builder.to_xml
end

Seems to be working when I do it this way:

Net::SFTP.start(...) do |ftp|
   ftp.upload(StringIO.new(generated_file.attachment.download), destination)
end

from net-sftp.

wakproductions avatar wakproductions commented on August 17, 2024

I'm getting the same error message, but uploading via FileZilla SFTP client works just fine. @dakingdom was the intrusion detection problem on the FTP server side or the local network you were uploading from?

from net-sftp.

dakingdom avatar dakingdom commented on August 17, 2024

The dropping of the transfer was either coming into our local network or within our local network. Always in the uploading direction. I tested it with scp and a large file. In this case a large file would be in the 200MB or larger range. Smaller files than that was not a problem. Sorry I guess, my reference frame for large file should have been clearer.

from net-sftp.

SpringsTea avatar SpringsTea commented on August 17, 2024

I am having this issue as well, but it's very sporadic. I have a bare basic implementation.

@con = Net::SFTP.start(@@host, @@username, :password => @@password)
@con.upload!(filepath, destination)

I had this running like this for several years when suddenly this year it started throwing this error. But not all the time, only sometimes. Sometimes it works with no issue. I've talked to my sftp host and they tell me there is no problem on their end. I'm transferring xml files and images in the < 5MB range. Any troubleshooting advice is appreciated.

from net-sftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.