GithubHelp home page GithubHelp logo

Comments (12)

p3x-robot avatar p3x-robot commented on June 19, 2024

you had an error in the connection internet. if you try it again it will work again. there is no need to change the code for this, this was a real error and not interfacelift downloader.

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

I use it weekly, never an error, i download serial 1080p, 4k,5k all at once.

from interfacelift-downloader.

Karlheinzniebuhr avatar Karlheinzniebuhr commented on June 19, 2024

it is pretty pointless to report bugs when getting this kind of attitude

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

you just start the program again and if your internet is stable it will throw no error.

the bug was in the internet not in the program, although you could catch an error and handle it, but people try to work less then more when it still works with a stable internet ...

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

ECONNRESET error is a very common known error in nodejs.

it means the internet connection was stopped while you were using any/all/this program.

from interfacelift-downloader.

stevenbenner avatar stevenbenner commented on June 19, 2024

Sorry for the delayed response, somehow I missed this github issue.

I cannot reproduce this problem. Does this happen every time you run the script? If so, does it fail after the same number of files? If you wait a while does it start working again?

I'm thinking that it's either a connectivity issue or you're running into some kind of rate limiting from the web site.

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

I think your rate limit is scraping slow enough, i never had an ECONNRESET error. Rate limit would give a HTTP 500 status bad gateway.

This was a connection issue.

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

You can scrape it and during turn off the net. Then you will get this same error.

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

You could provide a nice error like the internet broken etc.. Etc..

from interfacelift-downloader.

stevenbenner avatar stevenbenner commented on June 19, 2024

Reopening as a possible improvement.

Yeah it would probably make sense to catch any errors thrown by http.get() and print out a more user friendly error.

I think some retry logic would be a good addition to handle a randomly dropped connection. If it fails with a connection error then wait a few seconds (probably implement exponential backoff) and retry, repeat up to some limit then fail. This would make it all around more resilient to random failures.

from interfacelift-downloader.

p3x-robot avatar p3x-robot commented on June 19, 2024

Openwrt download logic is usually 5 retry, 5 sec, 10 sec, 15 sec, 20 sec, 30 sec, then it gives up.

from interfacelift-downloader.

stevenbenner avatar stevenbenner commented on June 19, 2024

Fixed - or at least improved - in commit 0357eb2e3187525dd3b7e18273d3c7d173ba6131.

I have added error handling to download operations that will catch connection errors and retry the download after an increasing delay. The retry is limited to 3 attempts, after which it will move on to the next file in the download queue.

This fix is included in the latest 2.4.0 release.

from interfacelift-downloader.

Related Issues (19)

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.