Git Product home page Git Product logo

Comments (7)

benhass avatar benhass commented on August 22, 2024 1

Thanks so much for the quick fix! This is working for me now.

from vendir.

cppforlife avatar cppforlife commented on August 22, 2024

hmm, interesting. here is the code: https://github.com/k14s/vendir/blob/7e9c900d438eac21867e24be007411e7ba1fc156/pkg/vendir/directory/github_release_sync.go#L74-L82

it downloads and then checks size. i wonder if there is some http error being returned because downloadFile isnt checking for 200 status. you might be hitting github rate limit error: https://github.com/k14s/vendir/blob/develop/docs/github-release.md#github-api-rate-limiting ?

from vendir.

benhass avatar benhass commented on August 22, 2024

Thanks for looking into this @cppforlife. I am using a personal access token since this repo is private, so I think it would be pretty unlikely that I hit a rate limit. I also haven't seen any issues at all when requesting the file directly via browser or wget request with the token.

from vendir.

benhass avatar benhass commented on August 22, 2024

I added a conditional in there to throw an error if the response is non-200 and it looks like I'm getting a 404 for the asset download. Have you confirmed that this works for private repos? I wish I could share more info with you to help troubleshoot...

from vendir.

benhass avatar benhass commented on August 22, 2024

I used this handy script for sanity checking https://gist.github.com/josh-padnick/fdae42c07e648c798fc27dec2367da21

from vendir.

cppforlife avatar cppforlife commented on August 22, 2024

hmm, looks like github asset download url didnt work for private repos. switching to asset resource url + header does seem to work. fixed in 47d346d. will cut release right after CI passes.

from vendir.

cppforlife avatar cppforlife commented on August 22, 2024

shipped in https://github.com/k14s/vendir/releases/tag/v0.9.0

from vendir.

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.