Tencent / vConsole

A lightweight, extendable front-end developer tool for mobile web page.
Other
16.87k stars 2.95k forks source link

前端进行SSE流式传输数据时报错length未定义 #669

Closed yassine-zhang closed 1 week ago

yassine-zhang commented 8 months ago

vConsole Version: 3.15.1

Error Report:

Error: TypeError: Cannot read properties of undefined (reading 'length') at vconsole.js?v=d40a7ecd:6622:70 at async getBytes (@microsoft_fetch-event-source.js?t=1710771233311&v=d40a7ecd:7:21) at async create (@microsoft_fetch-event-source.js?t=1710771233311&v=d40a7ecd:161:9)

liyao1520 commented 5 months ago

一样+1

JiangGuangqing commented 5 months ago

一样+2

grp-qianyashi commented 3 months ago

+1,我把文件下下来了,将对应部分的判空逻辑修改了下就ok了 image

jiezhiyong commented 1 week ago

手动下载 js文件,查找Uint8Array关键字,将"if(t){var r=new Uint8Array(t.length+o.value.length)" 改为 "if(t&&o.value){var r=new Uint8Array(t.length+(o.value||[]).length)"