Error when remote file cannot be downloaded

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
cli

調査の方向性

まず、存在しないリモートファイルを使って altis-cli stack scp コマンドで失敗を再現します。ダウンロードのエラー処理を追跡し、ユーザーに表示されるべきメッセージを特定します。ファイルが見つからない場合のメッセージがストリーム例外なしで表示され、その綴りが修正されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
0
フォーク
2
平均マージ
15時間 10分
マージ済み PR(30日)
6

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

humanmade/altis-cli のほかの issue

humanmade/altis-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。