vite
vite copied to clipboard
vite 开发的server在请求ogv小视频文件(几百KB)时会导致资源加载失败,报错HTTP为416
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
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.
Closing as this is a upstream issue. https://github.com/lukeed/sirv/issues/140