Comments (3)
Romt-0.4.0 now has a --timeout
switch to adjust download timeouts. In addition, the default timeout was changed from the httpx
default of five seconds to sixty seconds. See the README.rst
for details.
from romt.
Both of the URLs you mention are available for download from static.crates.io
(i.e., they aren't among the ones that give a 403 error). You can try downloading them using a web browser, or with wget
or curl
, e.g.:
curl -O https://static.crates.io/crates/lancelot-flirt/lancelot-flirt-0.6.0.crate
wget https://static.crates.io/crates/lancelot-flirt/lancelot-flirt-0.6.0.crate
If timeouts are uncommon, you can possibly just re-try the download operation (perhaps using a smaller value for the -j
switch). This might help determine the characteristics of your network that are causing the timeouts.
Also, if you are using a proxy, you might want to read https://github.com/drmikehenry/romt/blob/1420befe1fcba01d8dfdc27f2ff85f43bb4e2284/README.rst#proxy-server-troubleshooting for some hints another user provided for proxy-related problems. (I haven't tested with a proxy personally.)
ConnectTimeout
and ReadTimeout
are timeout errors from the httpx
library Romt uses for downloading. Timeouts for httpx
may be disabled as explained in https://www.python-httpx.org/advanced/#timeout-configuration by passing timeout=None
when creating a client. To try this, you can edit this line:
Line 24 in 1420bef
And change it to:
self._client = httpx.AsyncClient(timeout=None)
from romt.
Resolved. Thanks! (The problem was in power of my pc. I guess i requested too many jobs and overloaded my network (ConnectTimeout) and disk (ReadTimeout))
from romt.
Related Issues (12)
- issue serving on offline laptop HOT 4
- Spurious network error; couldn't resolve host: crates.io HOT 9
- Offline mirroring of a subset of crates.io HOT 1
- faield to download rustup in WSL HOT 2
- HTTP requests take a long time to process HOT 5
- The argument --keep-going does not seem to be working. I can't seem to get past one of the crates having a 403 forbidden Error. HOT 3
- The romt cannot be downloaded normally. HOT 5
- GIT_HTTP_BACKEND_SOURCES should be overwritable HOT 3
- Crate unpack error moving from Mac to Windows 10 HOT 5
- Case sensitive filesystems don't work? HOT 8
- toolchain - nightly and stable mix/share targets HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from romt.