-
Notifications
You must be signed in to change notification settings - Fork 540
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
Error getting hf file, getting proxy error #2625
Comments
This really looks like a proxy issue. Are you using a private network that requires to set a proxy (e.g. network from an enterprise, from a school, etc.)? If yes, I'd suggest to contact your network admin to know how to setup the proxy correctly (typically with HTTPS_PROXY/HTTP_PROXY env variables) |
Hi @Wauplin, thanks for your quick reply. I'm working on a private network and have already tried setting the HTTPS_PROXY/HTTP_PROXY environment variables (I'll double-check them). Could there be any other reasons why this issue is happening? |
Not that I can think of no. If you have any way to retry to download from another network just for a test, that can help you assess if the problem really comes from the network or from the laptop/something else. |
Describe the bug
While running
get_hf_file_metadata(url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token)
getting the following error*** requests.exceptions.ProxyError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /laion/CLIP-ViT-H-14-laion2B-s32B-b79K/resolve/main/open_clip_pytorch_model.bin (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 407 Proxy Authentication Required')))"), '(Request ID: 18171222-1f44-4766-bb5f-f3fb7cc53ad3)')
already tried adding proxy using
"os.environ['http_proxy']=" ... "
"os.environ['https_proxy']=" ... "
Reproduction
No response
Logs
No response
System info
The text was updated successfully, but these errors were encountered: