OpenListTeam / OpenListTeam/OpenList

[BUG] 夸克下载js文件乱码,网页正常

Open
#2,963 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
24.7k
Forks
2.3k
Avg merge
1d 20h
Merged PRs (30d)
36

Description

请确认以下事项
  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我已确认是OpenList的问题,而不是其他原因(例如 网络依赖操作)。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认这个问题在最新版本中没有被修复。

  • 我没有阅读这个清单,只是闭眼选中了所有的复选框,请关闭这个 Issue 。

OpenList 版本(必填)

v4.2.5

使用的存储驱动(必填)

夸克

问题描述(必填)

openlist夸克下载js文件乱码,也无法预览。官网网页端可以正常下载和预览,麻烦修复一下这个bug,谢谢!Image

日志(必填)

[GIN] 2026/08/25 - 11:00:41 | 500 | 348.87ms | 127.0.0.1 | GET "/p/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js?sign=fcDyKZRc6pFKBTul7lTizaYUoJFObcZurb5mV45W85o=:0"
WARN[2026-08-25 11:00:41] ServeHttp error. err: EOF
WARN[2026-08-25 11:00:41] Maybe size incorrect or reader not giving correct/full data, or connection closed before finish. written bytes: 28686 ,sendSize:62829,
ERRO[2026-08-25 11:00:41] GET /p/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js local proxy error: EOF
[GIN] 2026/08/25 - 11:00:41 | 200 | 335.34ms | 127.0.0.1 | GET "/p/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js?sign=fcDyKZRc6pFKBTul7lTizaYUoJFObcZurb5mV45W85o=:0"

2026/08/25 11:01:00 [Recovery] 2026/08/25 - 11:01:00 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:336 (0x7ff7ea9ebd97)
/usr/local/go/src/runtime/signal_windows.go:385 (0x7ff7ea9ebd67)
/usr/local/go/src/compress/gzip/gunzip.go:290 (0x7ff7eafcc152)
/usr/local/go/src/runtime/panic.go:860 (0x7ff7eaa0bb79)
/usr/local/go/src/runtime/panic.go:336 (0x7ff7ea9ebd97)
/usr/local/go/src/runtime/signal_windows.go:385 (0x7ff7ea9ebd67)
/usr/local/go/src/compress/gzip/gunzip.go:247 (0x7ff7eac6607f)
/usr/local/go/src/io/io.go:722 (0x7ff7eaa5be6c)
/source/internal/net/serve.go:254 (0x7ff7eafcbe04)
/source/internal/net/request.go:577 (0x7ff7eafc9e77)
/source/internal/stream/util.go:61 (0x7ff7eafd8238)
/source/internal/net/request.go:172 (0x7ff7eafc71c5)
/source/internal/net/request.go:99 (0x7ff7eafc6e49)
/source/internal/stream/util.go:75 (0x7ff7eafd65f0)
/source/internal/stream/util.go:26 (0x7ff7eafd5cec)
/source/internal/model/args.go:135 (0x7ff7eaf2dcd3)
/source/internal/net/serve.go:139 (0x7ff7eafca6fc)
/source/server/common/proxy.go:37 (0x7ff7eb8a62a4)
/source/server/handles/down.go:113 (0x7ff7ec0a43c4)
/source/server/handles/down.go:69 (0x7ff7ec0a3c53)
/source/server/handles/down.go:29 (0x7ff7ec0a3904)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/source/server/middlewares/limit.go:51 (0x7ff7ec14e797)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/source/server/middlewares/down.go:43 (0x7ff7ec14e5c7)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/source/server/middlewares/down.go:21 (0x7ff7ec042bfb)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/source/server/middlewares/check.go:35 (0x7ff7ec042919)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/recovery.go:90 (0x7ff7eb888cf0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/logger.go:282 (0x7ff7eb8879a9)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/context.go:192 (0x7ff7eb8792be)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/gin.go:722 (0x7ff7eb88695d)
/go/pkg/mod/github.com/gin-gonic/gin@v1.12.0/gin.go:672 (0x7ff7eb88625b)
/usr/local/go/src/net/http/server.go:3311 (0x7ff7eacf43ed)
/usr/local/go/src/net/http/server.go:2073 (0x7ff7eacd2e2f)
/usr/local/go/src/runtime/asm_amd64.s:1771 (0x7ff7eaa13f60)

[GIN] 2026/08/25 - 11:01:00 | 500 | 368.12ms | 127.0.0.1 | GET "/d/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js?sign=fcDyKZRc6pFKBTul7lTizaYUoJFObcZurb5mV45W85o=:0"
WARN[2026-08-25 11:01:00] ServeHttp error. err: EOF
WARN[2026-08-25 11:01:00] Maybe size incorrect or reader not giving correct/full data, or connection closed before finish. written bytes: 28686 ,sendSize:62829,
ERRO[2026-08-25 11:01:00] GET /d/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js local proxy error: EOF
[GIN] 2026/08/25 - 11:01:00 | 200 | 348.23ms | 127.0.0.1 | GET "/d/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js?sign=fcDyKZRc6pFKBTul7lTizaYUoJFObcZurb5mV45W85o=:0"
[GIN] 2026/08/25 - 11:01:00 | 206 | 355.92ms | 127.0.0.1 | GET "/d/quark/音频/落雪音乐源/音源接口/独家音源(推荐)/lx-music-source-v5.js?sign=fcDyKZRc6pFKBTul7lTizaYUoJFObcZurb5mV45W85o=:0"

配置文件内容(必填)

{
"force": false,
"site_url": "/",
"cdn": "",
"jwt_secret": "xxx",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "D:\tool6\openlist\data\data.db",
"table_prefix": "x_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index": "openlist"
},
"scheme": {
"address": "0.0.0.0",
"http_port": 5244,
"https_port": -1,
"force_https": false,
"cert_file": "",
"key_file": "",
"unix_file": "",
"unix_file_perm": "",
"enable_h2c": false,
"enable_h3": false
},
"temp_dir": "D:\tool6\openlist\data\temp",
"bleve_dir": "D:\tool6\openlist\data\bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "D:\tool6\openlist\data\log\log.log",
"max_size": 50,
"max_backups": 30,
"max_age": 28,
"compress": false,
"filter": {
"enable": false,
"filters": [
{
"cidr": "",
"path": "/ping",
"method": ""
},
{
"cidr": "",
"path": "",
"method": "HEAD"
},
{
"cidr": "",
"path": "/dav/",
"method": "PROPFIND"
}
]
}
},
"delayed_start": 0,
"auto_memory_limit": 4,
"min_free_memory": 0,
"max_block_limit": 0,
"max_connections": 0,
"max_concurrency": 64,
"tls_insecure_skip_verify": false,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": false
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"move": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress_upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"allow_retry_canceled": false
},
"cors": {
"allow_origins": [
""
],
"allow_methods": [
"
"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
},
"ftp": {
"enable": false,
"listen": ":5221",
"find_pasv_port_attempts": 50,
"active_transfer_port_non_20": false,
"idle_timeout": 900,
"connection_timeout": 30,
"disable_active_mode": false,
"default_transfer_binary": false,
"enable_active_conn_ip_check": true,
"enable_pasv_conn_ip_check": true
},
"sftp": {
"enable": false,
"listen": ":5222"
},
"mcp": {
"enable": false
},
"last_launched_version": "v4.2.5",
"proxy_address": ""
}

复现链接(可选)

No response

AI生成内容(可选)

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with source/internal/net/serve.go:254 and trace the request through source/internal/net/request.go, source/internal/stream/util.go, source/server/common/proxy.go, and source/server/handles/down.go. Reproduce a Quark JS download or preview using the reported /d or /p paths, then verify that the complete response is delivered without the EOF, gzip panic, or corrupted content.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.