Giter Club home page Giter Club logo

Comments (3)

drmikehenry avatar drmikehenry commented on June 26, 2024 1

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.

drmikehenry avatar drmikehenry commented on June 26, 2024

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:

self._client = httpx.AsyncClient()

And change it to:

        self._client = httpx.AsyncClient(timeout=None)

from romt.

elenakrittik avatar elenakrittik commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.