仅本地设备出现net::ERR_CONNECTION_RESET问题的排查求助
问题排查:Windows 11下jQuery Ajax POST请求出现ERR_CONNECTION_RESET错误
错误现象
使用jQuery Ajax发送POST请求到http://www.example.com/casino/update时,控制台立即返回:
POST http://www.example.com/casino/update net::ERR_CONNECTION_RESET
浏览器Network标签无预览和响应内容;同时在photos.google.com下载照片时出现ERR_EMPTY_RESPONSE错误,且仅POST请求异常,GET请求正常。
请求头详情
Accept: application/json, text/javascript, */*; q=0.01 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9,ar;q=0.8,de;q=0.7,la;q=0.6,fr;q=0.5 Connection: keep-alive Content-Length: 470559 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Cookie:__RequestVerificationToken=8Cwc2L37NPyl1F4DzZmbAWsA9hIdIVg7QvasixpkG7H1LCCLs1L9nw0x6UChMi29rmrILiPC696f5Z7L1O-L-ZaNLGXd6fCnFIc04HZ0hDs1; ai_user=lJP/J|2022-10-08T16:05:46.372Z; ai_session=6tmMv|1667568222358.7|1667569384189.9 Host: www.example.com Origin: http://www.example.com Referer: http://www.example.com/casino/b696197f-3836-44f0-8061-8c19fbff321a/settings Request-Id: |AERzm.7NhxS User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 X-Requested-With: XMLHttpRequest
错误回调返回数据
{"readyState":0,"responseText":"","status":0,"statusText":"error"}
相关Ajax代码
$.ajax({ url: this.action, type: this.method, // always POST in this case data: $(this).serialize(), dataType: "json", beforeSend: function () { toolbar.SaveButton.startLoaderIcon(); }, complete: function () { toolbar.SaveButton.stopLoaderIcon(); }, success: function (result) { toolbar.SaveButton.stopLoaderIcon(); SettingsPage.renderResultMessages(result, "Casino", null, null); //update Casino Operating Systems table with saved data reloadCasinoOperatingSystemDataTable(result.CompatibleOperatingSystems); reloadTrackerLinksDataTable(result.TrackerLinks); reloadCasinoGameTypeDataTable(result.CasinoGameTypes); reloadCasinoBankingProvidersDataTable(result.CasinoBankingProviders) }, error: function (error, type, httpStatus) { toolbar.SaveButton.stopLoaderIcon(); var message = "The Casino was not saved because the following error occurred:<br />" + error.status + ' ' + error.statusText + ' - ' + httpStatus; SettingsPage.renderErrorMessage(message, "Save Error"); } });
环境与已做排查
- 问题仅出现在Windows 11设备,同网络下Windows 10设备无异常,本地localhost调试正常
- 已尝试关闭杀毒软件、VPN、浏览器扩展,问题仍未解决
排查建议
- 重置网络基础配置:打开管理员命令提示符,执行
netsh winsock reset,再通过「设置→网络和Internet→高级网络设置→网络重置」重置适配器,重启设备后测试 - 检查防火墙规则:查看Windows Defender防火墙高级设置,确认是否存在拦截POST请求的规则,可临时关闭防火墙验证
- 降低请求数据量:本次请求Content-Length约460KB,尝试只提交部分字段,测试是否是大请求体触发的系统限制
- 更新/回退网卡驱动:打开设备管理器→网络适配器,更新网卡驱动至最新版本;若更新后出现问题,尝试回退到稳定版本
- 重置浏览器配置:使用浏览器隐身模式测试,或重置浏览器默认设置,排除浏览器缓存、插件残留问题
- 修复系统文件:管理员命令提示符执行
sfc /scannow,修复可能损坏的系统文件;同时确保Windows 11安装了最新累积更新
内容的提问来源于stack exchange,提问作者Adam Hey
相关产品推荐
相关产品推荐

