You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows上Azure/AWS CLI TLS握手时间歇性出现WinError10054如何解决?

Windows下执行az/aws命令间歇性TLS握手失败(错误10054)

在Windows系统中执行任意az或aws命令时,即便间隔几秒重复执行同一命令,仍会时而成功时而失败,并抛出如下错误:

('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

完整的回溯信息始终终止于TLS握手阶段:

File "ssl.py", line 1372, in do_handshake
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
...
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, ...))

症状

  • 同一az或aws命令间隔几秒执行,结果时而成功时而失败
  • 切换Wi-Fi网络无法解决问题
  • 云服务可正常访问(部分命令执行成功),说明认证及服务端配置无异常
  • 错误始终发生在ssl.py的do_handshake函数中,即TLS协商阶段而非之后
  • 所有基于Python、底层使用urllib3/requests的CLI工具均受影响

环境

  • Windows 10 / 11系统
  • 任意版本的Azure CLI和/或AWS CLI
  • 家庭ISP(如Xfinity、Verizon Fios等)
  • Wi-Fi网络连接

内容的提问来源于stack exchange,提问作者Shck Tchamna

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.02 03:47:27