abhishekjnvk / telegram-channel-downloader

Open Source Node.js script that simplifies scraping media files and messages from Telegram channels, groups, or users, facilitating offline access and storage of images, videos, and documents
79 stars 15 forks source link

Error: "Error: ENOENT: no such file or directory, open" #6

Closed Katylar closed 3 months ago

Katylar commented 4 months ago

I keep getting this error when I'm downloading some channels:

node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open
    at Object.open (node:fs:565:11)
    at WriteStream._construct (node:internal/fs/streams:72:17)
    at constructNT (node:internal/streams/destroy:299:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
Emitted 'error' event on WriteStream instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open'
}
abhishekjnvk commented 3 months ago

fixed this issue in latest comit @Katylar