Git Product home page Git Product logo

Comments (9)

bidw77 avatar bidw77 commented on June 14, 2024

再次测试1.2G可正常上传完成,正常返回。1.5G的文件已上传成功,却返回patch response statusCode is NotFound,这种情况发生在文件上传的最后一包。

from birdmessenger.

bluetianx avatar bluetianx commented on June 14, 2024

404 响应码是服务端没找到对应的文件,原因可能是: 1.服务端设置了文件过期时间; 2.上传的url不正确

from birdmessenger.

bidw77 avatar bidw77 commented on June 14, 2024

过期时间我设置的是1小时。问题出现在大于1G的文件,出现错误是上传文件的最后一包的patch请求。低于1G的文件上传成功。
我在tusdotnet也提问了:tusdotnet/tusdotnet#155

from birdmessenger.

bluetianx avatar bluetianx commented on June 14, 2024

每次都能复现吗?请说一下你用的代码运行环境,以及版本

from birdmessenger.

bidw77 avatar bidw77 commented on June 14, 2024

net5 (linux centos7)
是的。只要超过1G的文件,必现。

from birdmessenger.

bluetianx avatar bluetianx commented on June 14, 2024

我这边上传的文件大多都是好几个G的文件,你先尝试能不能在本机复现,这个nofound 异常是服务端给出的,问题一般在服务端

from birdmessenger.

bidw77 avatar bidw77 commented on June 14, 2024

问题找到了。是nginx连接超时的问题。重新设置proxy_read_timeout、proxy_send_timeout、proxy_connect_timeout设置成180,1.9G上传成功。
4.6G还是失败,nginx状态码499,最后一包耗时1分40秒,这个可能是HttpClient等待超时问题(客户端不等待响应,关闭了连接)。请提供下超时设置。

from birdmessenger.

bluetianx avatar bluetianx commented on June 14, 2024

wiki 里面有写

from birdmessenger.

bidw77 avatar bidw77 commented on June 14, 2024

感谢!那我关闭了!

from birdmessenger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.