Skip to content
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

open file failure, got err bad content length #71

Open
ghost opened this issue Mar 8, 2020 · 5 comments
Open

open file failure, got err bad content length #71

ghost opened this issue Mar 8, 2020 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2020

Hi guys,

Hope you are all well !

I have often the following error when downloading with grab:

open file failure, got err bad content length

Any way to sort it out ?

Cheers,
X

@m-barthelemy
Copy link

I'm also getting it when downloading some files that we already previously downloaded successfully (by Grab itself) and thus already exist.

This always fails if the tar.gz archive already exists:

grab.Get(path, "https://github.com/nginx/nginx/archive/release-1.18.0.tar.gz")

This always works even if the iso already exists:

grab.Get(path, "https://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-live-server-amd64.iso")

@m-barthelemy
Copy link

@cavaliercoder do you have any idea about what is going wrong with downloads from Github archives?

@youngjuning
Copy link

same issues

@ghost
Copy link

ghost commented Feb 21, 2021

@cavaliercoder ,

Hope you are all well !

Screenshot 2021-02-21 at 11 45 15

I am still facing the issue, any idea of a workaround for fixing that annoying issue ?

Thanks for any insights or inputs on that.

Cheers,
Luc Michalski

@anjannath
Copy link

As mentioned in #71 (comment) this happens when the file to be downloaded already exists in the destination, for now I just remove the existing file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants