首页 > 解决方案 > Kendo UI 文件夹上传出错 - ERR_HTTP2_PROTOCOL_ERROR

问题描述

我正在使用 Telerik Kendo File Upload 来上传文件夹。在生产环境中,很少有用户抱怨文件夹上传问题,在上传过程中,很少有文件出错,使用控制台选项卡中的开发人员工具会记录“ERR_HTTP2_PROTOCOL_ERROR”错误作为失败文件的附件。

在此处输入图像描述

当我尝试时,我没有收到此错误,并且所有文件夹都已正确上传。我要求用户分享他们面临错误的文件,并且当我尝试上传成功时。当用户再次尝试上传错误的相同文件时,它今天成功了,昨天失败了,但是仍然有文件给出了相同的错误。

我浏览了一篇帖子,上面说问题可能是由于使用了 HTTP/2 而当他们切换到 HTTP/1.1 时它工作正常。我们也在使用 HTTP/2,但我们没有选择回到 HTTP/1.1。下方链接 :

https://www.telerik.com/forums/problems-with-multi-file-upload-and-http-2

有什么建议么 ?

标签: c#kendo-uitelerikhttp2

解决方案


SETTINGS_MAX_CONCURRENT_STREAMS (0x3):
Indicates the maximum number of concurrent streams that the sender will allow. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. Initially, there is no limit to this value. It is recommended that this value be no smaller than 100, so as to not unnecessarily limit parallelism.
A value of 0 for SETTINGS_MAX_CONCURRENT_STREAMS SHOULD NOT be treated as special by endpoints. A zero value does prevent the creation of new streams; however, this can also happen for any limit that is exhausted with active streams. Servers SHOULD only set a zero value for short durations; if a server does not wish to accept requests, closing the connection is more appropriate.

解决方法::在注册表中的 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters 下添加“Http2MaxConcurrentClientStreams”并重新启动服务器。将此值设置为 100 或 >100


推荐阅读