-
Notifications
You must be signed in to change notification settings - Fork 248
Description
Current Behavior
附带额外参数应用上线后,文件上传请求报错 opied 0 bytes from body stream instead of 7094 bytes
Expected Behavior
正常请求
Error Logs
[2025-12-25 10:05:46] [DEBU] [worker-3480]CheckMatcher::Match(0)path=/file/upload
[2025-12-25 10:05:46] [DEBU] [worker-3480]match has:8499
[2025-12-25 10:05:46] [DEBU] [worker-3480]start monitor...
[2025-12-25 10:05:46] [DEBU] [worker-3480]auth beginning
[2025-12-25 10:05:46] [DEBU] [worker-3480]start auth...
[2025-12-25 10:05:46] [DEBU] [worker-3480]application name is anonymous
[2025-12-25 10:05:46] [DEBU] [worker-3480]After: HeapAlloc=10.01 MB
[2025-12-25 10:05:46] [ERRO] [worker-3480]http upstream send error: copied 0 bytes from body stream instead of 7094 bytes
[2025-12-25 10:05:46] [ERRO] [worker-3480]copied 0 bytes from body stream instead of 7094 bytes
[2025-12-25 10:05:46] [DEBU] [worker-3480]label name: api label value: 0f2ff112-3370-d2b4-82c9-de59c01c0295
[2025-12-25 10:05:46] [DEBU] [worker-3480]label name: app label value: anonymous
[2025-12-25 10:05:46] [DEBU] [worker-3480]label name: handler label value: proxy
[2025-12-25 10:05:46] [DEBU] [worker-3480]label name: upstream label value: dddd
[2025-12-25 10:05:46] [DEBU] [worker-3480]label name: provider label value: -
[2025-12-25 10:05:46] [DEBU] [worker-3480]label name: api_kind label value: -
Steps to Reproduce
- 建立一个具有额外参数的应用,并上线
- 建立一个文件上传接口,并上线(绑定的上游也上线)
- 上游必须启动,否则会连接拒绝,不能复现
- 请求上传文件接口
Environment
(base) ➜ apinto ./apinto version
Apinto version: 0.22.18
Golang version: go version go1.24.7 linux/amd64
Git commit hash: e5a5ffd
Built on: 2025-12-19T10:09:19Z
Built by: goreleaser
Built by eosc version: v0.21.3
(base) ➜ apinto uname -a
Darwin 00069.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030 arm64