Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 自定义发布时无法上传 jar 文件: 请求异常 Network Error #638

Open
qfilsdv731 opened this issue Oct 31, 2023 · 0 comments

Comments

@qfilsdv731
Copy link

qfilsdv731 commented Oct 31, 2023

Spug 版本:

操作系统Linux-3.10.0-957.el7.x86_64-x86_64-with-centos-7.9.2009-Core

Python版本3.6.8
Django版本2.2.28
Spug API版本v3.2.7
Spug Web版本v3.2.7

问题重现步骤

1.发布配置中新建自定义发布,数据上传选择发布时上传
2.切换到普通用户在发布申请中选择刚才新建的发布,上传 Java 程序的 jar 包显示网络错误,将 .jar改为 zip 后缀正常。

报错/问题截图

image
image

API 接口:api/deploy/request/upload
代码问题:spug_api/apps/deploy/views.py#L344

期望的结果

正常上传 jar 文件,且显示进度条。
自定义上传超时时间,jar 文件可能 300M,但上传速度因为网络问题 200k。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant