在过去两个月中,我在Chrome的开发者控制台上收到以下错误:
net::ERR_INCOMPLETE_CHUNKED_ENCODING
Run Code Online (Sandbox Code Playgroud)
症状:
服务器环境:
在我们内部的Apache服务器上发生了这种情况.它不会发生在任何其他人身上 - 即我们的用户都没有遇到这个问题 - 我们的开发团队也没有其他人.
其他人使用完全相同的Chrome版本访问完全相同的服务器.我还尝试禁用所有扩展程序并在隐身模式下浏览 - 无效.
我使用过Firefox并且发生了同样的事情.截断的文件和诸如此类的东西.唯一的问题是,Firefox不会引发任何控制台错误,因此您需要通过Firebug检查HTTP请求以查看问题.
来自Apache的响应标头:
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:close
Content-Encoding:gzip
Content-Type:text/html; charset=utf-8
Date:Mon, 27 Apr 2015 10:52:52 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Server:Apache/2.2.22 (Ubuntu)
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.10-1ubuntu3.8
Run Code Online (Sandbox Code Playgroud)
在测试时,我能够通过在我的htaccess文件中强制HTTP 1.0来解决问题:
SetEnv downgrade-1.0
Run Code Online (Sandbox Code Playgroud)
这摆脱了问题.但是,通过HTTP 1.1强制HTTP 1.0不是一个合适的解决方案.
更新:因为我是唯一一个遇到此问题的人,我认为我需要花更多的时间来调查它是否是客户端问题.如果我进入Chrome的设置并使用"恢复默认设置"选项,问题将消失大约10-20分钟.然后它返回.
我需要更改什么httpd conf设置才能增加Apache的最大并发连接数?注意:我关闭了KeepAlive,因为这主要是一个API服务器.
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same …Run Code Online (Sandbox Code Playgroud) 我正在把它们放在我脑海中的链接上.
GET https://fr.s.us/js/jquery-ui.css net::ERR_INSECURE_RESPONSE
GET https://fr.s.us/js/jquery-1.9.1.min.js net::ERR_INSECURE_RESPONSE
GET https://fr.s.us/js/jquery-ui.js net::ERR_INSECURE_RESPONSE
有人请赐教这些jquery控制台错误..
Failed to load resource: net::ERR_INSECURE_RESPONSE
Run Code Online (Sandbox Code Playgroud) 现在用的车把和做一个基本形式GET到createnewpassword.hbs如下,但我得到的净:: ERR_CONNECTION_RESET在浏览器错误,无法加载页面。我真的坚持这一点。请提出一些建议或任何帮助将不胜感激。
表格1.hbs
<form name="form1" id="form1" action="/forgotpassword/createnewPassword" method="GET" >
<input type="hidden" name="tk" id="tk" value="123456">
<input type="submit" name="submitVals" / >
</form>
Run Code Online (Sandbox Code Playgroud)
并且正在监听 nodejs 上的路由,例如
应用程序.js
app.get('/forgotpassword/createnewpassword', function(req,res){
var context = {
appTitle : "create new password"
}
res.render('/filepath/createnewpassword' , context);
});
Run Code Online (Sandbox Code Playgroud) 我有一个运行PHP 7.1的Windows 2012 R2 Server,在IIS7上托管了一个Wordpress
wordpress媒体库的默认上载大小为2MB,我可以将其更改php.ini为512MB。但是,当上传大文件时,尤其是超过70 MB的文件,上传开始,然后暂停并挂在中间。服务器超时后,我收到wordpress HTTP错误。
net::ERR_CONNECTION_RESET在检查控制台上。
此超时发生在上传开始后的10到20秒之间,并且在不同的生产环境中会立即发生。
我已经做了很多搜索,并在Windows安装程序上使用新的wordpress创建了一个新环境,但是在Windows 2007 SP2安装程序上遇到了同样的问题。
Inside wp-config.php
@ini_set( 'upload_max_size' , '512M' );
@ini_set( 'post_max_size', '512M' );
@ini_set( 'memory_limit', '1024M' );
@ini_set( 'max_execution_time', '300' );
Run Code Online (Sandbox Code Playgroud)
inside web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime executionTimeout="3600" maxRequestLength="1048576" requestLengthDiskThreshold="1048576"/>
<identity impersonate="true"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824"></requestLimits>
</requestFiltering>
</security>
<rewrite>
<rules/>
</rewrite>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
inside php.ini
upload_max_filesize = 512M
post_max_size = 512M
memory_limit …Run Code Online (Sandbox Code Playgroud) apache ×2
php ×2
certificate ×1
chunked ×1
file-upload ×1
http ×1
iis ×1
javascript ×1
node.js ×1
windows ×1
wordpress ×1