Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Error when remote file cannot be downloaded

Aperta
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
cli

Direzione di ricerca

Inizia riproducendo il problema tramite il comando altis-cli stack scp usando un file remoto inesistente. Traccia la gestione dell’errore di download e determina il messaggio previsto per l’utente; il lavoro è completato quando viene mostrato il messaggio relativo al file mancante senza l’eccezione dello stream e la sua ortografia è corretta.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When trying to retrieve a file that doesn't exist, an error is shown instead of a message that the remote file doesn't exist, and the spelling should be checked.

$ npx altis-cli stack scp my-remote:/tmp/doesnot-exist.txt .  

✔ doesnot-exist.txt          [<============================================] 100.0% (39B/0B, 29.71B/s)
node:events:496
      throw er; // Unhandled 'error' event
      ^

Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at _write (node:internal/streams/writable:489:11)
    at Writable.write (node:internal/streams/writable:510:10)
    at Base64Decode.ondata (node:internal/streams/readable:1009:22)
    at Base64Decode.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at Base64Decode._flush (/home/sander/.npm/_npx/232142a5e941c234/node_modules/base64-stream/lib/decode.js:51:18)
    at Base64Decode.final [as _final] (node:internal/streams/transform:128:10)
    at prefinish (node:internal/streams/writable:916:14)
Emitted 'error' event on WriteStream instance at:
    at WriteStream.onerror (node:internal/streams/readable:1028:14)
    at WriteStream.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  code: 'ERR_STREAM_WRITE_AFTER_END'
}

Node.js v22.14.0
Lingua principale
TypeScript
Stelle
0
Fork
2
Merge medio
16h 6m
PR unite (30g)
7

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di humanmade/altis-cli

Tutte le issue di humanmade/altis-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.