Giter VIP home page Giter VIP logo

Comments (2)

goncalo-oliveira avatar goncalo-oliveira commented on June 15, 2024

A quick update here... this code isn't mine and I've noticed that there is a DownloadBytes method, so I updated the code to use that instead

        try
        {
            return await client.DownloadBytes( filePath, cancellationToken );
        }
        catch ( Exception ex )
        {
            logger.LogError( "Failed to download file {FilePath}. {Error}", filePath, ex.Message );

            return Array.Empty<byte>();
        }

Somehow, this fixes the issue. I'll leave the issue open, as I'm unsure if the code above is not correct or if there's indeed something that needs fixing.

from fluentftp.

FanDjango avatar FanDjango commented on June 15, 2024

OpenRead. Obsolete.

You could get it to work, though, try it without the using using first.

I don't really recommend you to try to get it to work with OpenRead, especially if you have best results with the higher level APIs.

But it could be a small timing related bug that doesn't show up with the HL APIs.

I wish you had time stamps for these log messages:

Response: 150 Opening BINARY mode data connection for /M_20240516_1620_85BFB8_XLRAEH4300G032359.DDD (116281 bytes). [1ms]
Status:   Waiting for a response
Status:   Disposing(async) FtpSocketStream(control connection of AsyncFtpClient)

What`s the timing of these?

from fluentftp.

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.