上传或下载较大的文件(大于 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 错误异常。
它是多层环境,请求首先转发到编排层的微服务,然后是服务层的微服务。
有什么想法/建议吗?