-
Notifications
You must be signed in to change notification settings - Fork 949
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
[bug] file DOWNLOAD cannot compute hash on failed download, it shows 'status: [35;"SSL connect error"]' #16302
Comments
It could be that your IT uses different configuration for browser requests, and might be blocking other non-browser requests. Can you try the same for example at home, and see if it works? |
|
Sorry, just to make sure: did you try at home with the same computer, or with a different computer and outside of the corporate network? Because if you are at home with the same corporate laptop, probably connected to the office VPN, then, it would be identical to being in the office physically. I am trying to isolate the possible issue, if it could be the VPN, the proxy, or it could be other thing. |
Hi @memsharded Thank you very much for your explanation and questions. I have been using my personal laptop at home to try it out, and my network environment is a non-corporate one. It is my home broadband, and I use a VPN to access GitHub (due to China's network policies that restrict access to GitHub without a VPN). The VPN I use is not a corporate VPN. |
If at home you have exactly the same issue, then I'd say that it seems the problem is the VPN might be filtering the Conan Can you please try doing a download of that url with the Python import requests
url = 'https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz'
r = requests.get(url, allow_redirects=True)
open('myfile.tar.gz', 'wb').write(r.content) |
Sure, @memsharded |
Ok, that is at least a step forward. import requests
import platform
url = 'https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz'
platform_info = "; ".join([" ".join([platform.system(), platform.release()]),
"Python "+platform.python_version(),
platform.machine()])
headers = {"User-Agent": f"Conan/2.3.1 ({platform_info})"}
r = requests.get(url, allow_redirects=True, headers=headers)
open('myfile.tar.gz', 'wb').write(r.content) |
Hi @memsharded |
I am really confused about this, I don't know what to think. Have you tried to use Conan directly? I mean, it seems that you are calling it via
Just in case running from xmake could have some effect. |
Hi @memsharded
or
But it still failed: |
I have just realized something, this doesn't seem to be a Conan download. It is not Conan that is downloading anything, it seems to be the If it is CMake doing the download, not Conan, it doesn't matter what configuration (proxies, certs, etc) you pass to Conan, because it is not being used. To verify if CMake is the culprit, you might extract those lines to an independent |
@memsharded
and the result was:
But I didn't have any idea about this error. |
I have try to download by the curl, and it failed either:
But I am still puzzled by the fact that the browser is able to download the file normally. |
The reasons why a browser might have access but other applications not, is because browsers might use different To summarize: This seems to confirm that it is not a Conan issue, but a network limitation issue on the user side, so this wouldn't be a Conan bug. I am afraid that we cannot do anything from the Conan side to solve it directly. What you can do is something like:
|
Can I manually download this tgz file and then copy it to a specific Conan directory, so that gRPC can be compiled successfully? |
Yes, the |
Problem Description
When using Conan to build my application, I'm encountering the following error:
Environment Information
Additional Information
I've tried the following approaches, but the issue persists:
Checked the network connection for any issues.
1.Configured Conan to use a proxy server, as required for my network setup.
2.Utilized a VPN to bypass the network policy restrictions in China.
3. Directly accessed the download URL https://storage.googleapis.com/grpc-bazel-mirror/github.com/census-instrumentation/opencensus-proto/archive/v0.3.0.tar.gz in the browser, and was able to successfully download the tarball file.
If you have any other suggestions, please let me know. Thank you!
The text was updated successfully, but these errors were encountered: