question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Downloading a big package fails with Incorrect Content-Range header

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: Ubuntu 20.04
  • Compiler+version: clang 9
  • Conan version: 1.39.0
  • Python version: 3.8.10

Steps to reproduce (Include if Applicable)

  • Simply trying to run conan install android-ndk/r21d@ yields the error, the download fails, keep retrying and failing the same way.
  • The same error happens with a different android NDK package.

This seems similar to #7498 except the package is on Conan center in this case.

Logs (Executed commands with output) (Include/Attach if Applicable)

conan install android-ndk/r21d@
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
CC=/usr/bin/clang-9
CXX=/usr/bin/clang++-9
Installing package: android-ndk/r21d
Requirements
    android-ndk/r21d from 'conan-center' - Cache
Packages
    android-ndk/r21d:4db1be536558d833e52e862fd84d64d75c2b3656 - Download

Installing (downloading, building) binaries...
android-ndk/r21d: Retrieving package 4db1be536558d833e52e862fd84d64d75c2b3656 from remote 'conan-center' 
Downloading conanmanifest.txt completed [1028.25k]                                       
Downloading conaninfo.txt completed [0.20k]                                              
Downloading conan_package.tgz completed [1056295.44k]                                    
ERROR: Download failed, check server, possibly try again
Download failed, check server, possibly try again
Error in resumed download from https://center.conan.io/artifactory/api/conan/conan-center/v1/files/_/android-ndk/r21d/_/5013605c2f2c7c4cd448ea2d5c77e274/package/4db1be536558d833e52e862fd84d64d75c2b3656/f0d2c0a89bfe4745335cfea2ce9fd5d4/conan_package.tgz
Incorrect Content-Range header 
Waiting 0 seconds to retry...
Downloading conan_package.tgz completed [1057303.94k]                                    
ERROR: Download failed, check server, possibly try again
Download failed, check server, possibly try again
Error in resumed download from https://center.conan.io/artifactory/api/conan/conan-center/v1/files/_/android-ndk/r21d/_/5013605c2f2c7c4cd448ea2d5c77e274/package/4db1be536558d833e52e862fd84d64d75c2b3656/f0d2c0a89bfe4745335cfea2ce9fd5d4/conan_package.tgz
Incorrect Content-Range header 
Waiting 0 seconds to retry...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, May 27, 2022

I need to remove this from the milestone, as we haven’t manage to reproduce so far. There are many things that can affect here, network issues, proxies, etc, so this might be challenging to solve. I am closing it, as there is little more we can do, but if anyone keeps persistently hitting this issue, or have any possible way to reproduce, please re-open or create a new ticket.

Many thanks to all for all the feedback!

1reaction
memshardedcommented, Apr 5, 2022

Thanks @jblort If we can reproduce this against the ConanCenter server, removing the client side, that would help reporting something against Artifactory if necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Received bad content-range header from server - BigFix Forum
Trying to install office 365 patches from BigFix to a test machine, and I'm getting a Download Error: “Received bad content-range header ......
Read more >
HTTP range requests - MDN Web Docs - Mozilla
If an HTTP response includes the Accept-Ranges header and its value is anything other than " none ", then the server supports range...
Read more >
Problem with content range with Indy TIdHttp put command ...
The message when I use the Ranges property is: HTTP/1.1 400 Bad Request {"error":{"code":"MissingContentRangeHeader","message":"Content-Range ...
Read more >
How To Fix HTTP Error 431 Request Header Fields Too Large
This can happen because the total size of the request headers is too large or it can happen because a single header field...
Read more >
RFC 7231: Hypertext Transfer Protocol (HTTP/1.1)
An origin server that allows PUT on a given target resource MUST send a 400 (Bad Request) response to a PUT request that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found