Skip to content
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

Unhandled 'error' event #26

Open
crypticviper opened this issue Feb 6, 2024 · 1 comment
Open

Unhandled 'error' event #26

crypticviper opened this issue Feb 6, 2024 · 1 comment

Comments

@crypticviper
Copy link

Hello, thanks for this tool. Makes life easy to download interfacelift wallpapers 👍

However, I get below error when running the tool without the limit flag. It usually happens at about page 130.

Scanning Page 133...
Scanning Page 134...
node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: socket hang up
    at TLSSocket.socketOnEnd (node:_http_client:516:23)
    at TLSSocket.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketOnEnd (node:_http_client:516:9)
    at TLSSocket.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ECONNRESET'
}

Node.js v21.6.1
@stevenbenner
Copy link
Owner

Thank you for the bug report.

It looks like I will need to add retry behavior for the page scraper.

This is very similar to issue #22. But that issue was specific to the image downloads, so I didn't add any retry logic for when the script is just walking the pages. I believe that a similar solution would work here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants