处理流式数据的错误报警

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
typescript
領域
devtools

調査の方向性

Start by reproducing the streaming request failure and inspect useAIChat.ts around lines 149, 296-314, and 369, along with the call from AIChatView.vue. Determine whether vConsole is causing the undefined length error or only reporting an application error. Done means the cause is isolated and the streaming request no longer produces the reported failure or an unjustified fallback.

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

説明

vConsole Version:反正当前npm包里最新的
在进行流式请求时,vonsole好像会对数据进行错误的处理导致输出(匿名函数报的错,我不知道啥类型)报错
部分个人输出:
installHook.js:1 ⚠️ 流式请求失败: Cannot read properties of undefined (reading 'length')
overrideMethod @ installHook.js:1
e.callOriginalConsole @ vconsole.min.js:10
e.addLog @ vconsole.min.js:10
(匿名) @ vconsole.min.js:10
(匿名) @ useAIChat.ts:296
await in (匿名)
(匿名) @ useAIChat.ts:369
handleSendChat @ AIChatView.vue:419
(匿名) @ AIChatView.vue:382
callWithErrorHandling @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:1873
callWithAsyncErrorHandling @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:1880
invoker @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:7572
installHook.js:1 ⚠️ 移除流式占位符,尝试降级到非流式模式
overrideMethod @ installHook.js:1
e.callOriginalConsole @ vconsole.min.js:10
e.addLog @ vconsole.min.js:10
(匿名) @ vconsole.min.js:10
(匿名) @ useAIChat.ts:300
await in (匿名)
(匿名) @ useAIChat.ts:369
handleSendChat @ AIChatView.vue:419
(匿名) @ AIChatView.vue:382
callWithErrorHandling @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:1873
callWithAsyncErrorHandling @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:1880
invoker @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:7572
installHook.js:1 [sendStreamMessage] 流式已收到数据但后续出错,不再降级
overrideMethod @ installHook.js:1
e.callOriginalConsole @ vconsole.min.js:10
e.addLog @ vconsole.min.js:10
(匿名) @ vconsole.min.js:10
(匿名) @ useAIChat.ts:314
await in (匿名)
(匿名) @ useAIChat.ts:369
handleSendChat @ AIChatView.vue:419
(匿名) @ AIChatView.vue:382
callWithErrorHandling @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:1873
callWithAsyncErrorHandling @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:1880
invoker @ vue.runtime.esm-bundler-CKUwx75R.js?v=d14f9530:7572
installHook.js:1 [handleSendMessage] 错误详情: TypeError: Cannot read properties of undefined (reading 'length')
at vconsole.min.js:10:221845
at async sendStreamMessage (useAIChat.ts:149:35)
at async handleSendMessage (useAIChat.ts:369:22)
at async handleSendChat (AIChatView.vue:419:18)

主要言語
TypeScript
スター
17.5k
フォーク
3k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Tencent/vConsole のほかの issue

Tencent/vConsole の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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