-
Notifications
You must be signed in to change notification settings - Fork 71
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
Connection Timeout #41
Comments
The same problem, but it works fine after cloning [dependencies] |
Thanks, let me have a try. |
I cannot read that error message in Chinese, sorry. Seems like there was an issue connecting to huggingface.co and I think connecting to it from China is causing regular issues. |
I am suddenly having issues with this as well on Ubuntu (from USA). The same Regular git requests to hf.co work fine. Cloning In order to match this issue I tried thread 'main' panicked at src/main.rs:18:45:
called `Result::unwrap()` on an `Err` value: RequestError(Transport(Transport { kind: Io, message: None, url: Some(Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("huggingface.co")), port: None, path: "/bert-base-uncased/resolve/main/README.md", query: None, fragment: None }), source: Some(Custom { kind: TimedOut, error: "timed out reading response" }) })) |
Thanks! This solved the problem for me. I have a proxy by setting |
Which versions are you guy using ? We may just need to make a new release (although I' m not sure we made any change whatsoever since the last release) |
Just the latest 0.3.2 |
1 similar comment
Just the latest 0.3.2 |
@Narsil when can we have a new version which includes the proxy setting? |
Ordinary proxies cannot be used in China. To solve this problem, sock5 support is required. I have added pr for this purpose. Before pr is merged, you can directly use the following version to automatically obtain socks5 proxy in system. hf-hub = { git = "https://github.com/oovm/hf-hub" } make sure you are using export http_proxy="socks5://127.0.0.1:7890"
export https_proxy="socks5://127.0.0.1:7890" |
There is no need for that. You always could enable It's important we do not enable that feature by default, because otherwise:
This is to the best of my understanding how feature were designed and created. |
In my Windows OS, when I run the example:
Connect Timeout
exception. I tried to use proxy, but it didn't work too.huggingface_hub
package, the exception didn't happen.The text was updated successfully, but these errors were encountered: