[英]Undocumented TypeError: Failed to fetch when uploading file on swagger (.net core 3.1)
I am facing this error when I am trying to upload excel file (length around 4 MB) on swagger api (.Net core 3.1).当我尝试在 swagger api (.Net core 3.1) 上上传 excel 文件(长度约为 4 MB)时,我遇到了这个错误。 Its working on local as well as on other Azure app services (azure.net) but when I am trying to configure my code on azure virtual machine IIS, this error is coming on the domain api.
它在本地以及其他 Azure 应用程序服务 (azure.net) 上工作,但是当我尝试在 azure 虚拟机 IIS 上配置我的代码时,此错误出现在域 api 上。
I tried lot of things adding headers, allowing CORS, increasing maxuploadlength, enabling SSL but nothing seems work.我尝试了很多添加标题的方法,允许 CORS,增加 maxuploadlength,启用 SSL,但似乎没有任何效果。 Mainly its occurring on application configured on a azure VM IIS server with SSL domain.
它主要发生在配置在具有 SSL 域的 azure VM IIS 服务器上的应用程序上。
Please check if any below points are the cause.请检查是否有以下几点原因。
a) Windows Server 2016 or later / Windows 10 or later b) IIS 10 or later c) TLS 1.2 or later connection
a) Windows Server 2016 或更高版本 / Windows 10 或更高版本 b) IIS 10 或更高版本 c) TLS 1.2 或更高版本连接
References:参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.