Giter VIP home page Giter VIP logo

Comments (6)

kurin avatar kurin commented on August 20, 2024

Yeah, this was a hack to get the file ID, which is a required field to pretty much every other API call, including b2_delete_file_version, and, it looks like, b2_get_file_info, still.

from blazer.

kurin avatar kurin commented on August 20, 2024

I think probably the best way around this is to look for 416 and resubmit without a Range header. This will incur a latency hit. Out of curiosity, how many zero-byte files do you have?

from blazer.

aksdb avatar aksdb commented on August 20, 2024

According to the docs - and confirmed by a quick curl request - a HEAD request should do the job (without any range):

https://www.backblaze.com/b2/docs/b2_download_file_by_name.html

from blazer.

aksdb avatar aksdb commented on August 20, 2024

Oh and: I don't have many 0 byte files. Actually I just stumbled upon this while running integration tests. It seems like a potential, hard to debug problem, though, should this hit production (like: deletion works in 99,999% of cases ... but sometimes a weird error is thrown) :D

from blazer.

kurin avatar kurin commented on August 20, 2024

I mean, when you say it like that it makes it sound so obvious.

from blazer.

aksdb avatar aksdb commented on August 20, 2024

In hindsight solutions often seem obvious 😄
Thanks for fixing this so fast!

from blazer.

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.