繁体   English   中英

Kendo UI 文件夹上传出错 - ERR_HTTP2_PROTOCOL_ERROR

[英]Getting Error on Kendo UI Folder Upload - 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

有什么建议么?

这是因为在您的客户端机器上未启用 http/2,因此会提示错误。

如果您查看本地计算机,您将看到在您的服务器下,您启用了Https协议和有效证书。

您的客户端要么在服务器上缺少有效证书,要么正在通过Http协议使用该站点。

你可以在这里了解更多:

http/2解释

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.

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM