vite icon indicating copy to clipboard operation
vite copied to clipboard

vite 开发的server在请求ogv小视频文件(几百KB)时会导致资源加载失败,报错HTTP为416

Open woleicom opened this issue 4 years ago • 1 comments

Describe the bug

vite 开发的server在请求ogv小视频文件(几百KB)时会导致资源加载失败,报错HTTP为416,而build后放到服务器上请求正常,在上传几兆的大文件视频也会正常,不会出现416问题

Reproduction

https://github.com/woleicom/vite-bug-demo

System Info

Uncaught (in promise) Error: HTTP error 416
    at XMLHttpRequest.checkOpen (ogv.js:2:91243)

Used Package Manager

yarn

Logs

No response

Validations

woleicom avatar Aug 22 '22 02:08 woleicom

Closing as this is a upstream issue. https://github.com/lukeed/sirv/issues/140

sapphi-red avatar Aug 22 '22 04:08 sapphi-red