linux - 上传/下载较大文件时,服务器不返回任何内容(无标题、无数据)
问题描述
上传或下载较大的文件(大于 30 MB)时,我偶尔会遇到此异常:
"System.Net.Http.HttpRequestException: An error occurred while sending the
request. ---> System.Net.Http.CurlException: Server returned nothing (no
headers, no data) at
System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error) at
System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult)
它是一个在 Linux/nginx 环境中运行的 .NET Core 2.0 Web 应用程序。因此,有时执行相同文件的上传/下载没有问题,有时我会收到“无标题,无数据”异常,有时我还会收到 502 Bad gateway 或 504 gateway timeout 错误异常。
它是多层环境,请求首先转发到编排层的微服务,然后是服务层的微服务。
有什么想法/建议吗?
解决方案
推荐阅读
- asp.net - 错误:对类型“iconventionrelationshipbuilder”的引用声称它在“microsoft.entityframeworkcore”中定义,但找不到
- wine - 未找到酒库,但在 system32 文件夹中
- python - 使 seaborn 条形图中的颜色与轴中的标签匹配
- sql - 更新 PostgreSQL 函数中的行和变量
- javascript - 单击时切换颜色
- csvhelper - 无法为“net5.0”解析“CsvHelper (>= 26.1.0)”
- python - Django admin - 处理多对多字段的权限
- javascript - Safari上背景图像生涩的视差滚动
- python - 在用 Key 中的当前值增加另一个变量的值后,我得到一个 KeyError,不知道我错过了什么
- python - 如何从比值列表长的键列表中制作字典