nginx 中的 ERR_SPDY_PROTOCOL_ERROR 是什么意思? [英] What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?

查看:103
本文介绍了nginx 中的 ERR_SPDY_PROTOCOL_ERROR 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的一些同事收到了 net::ERR_SPDY_PROTOCOL_ERROR 错误.

I and a few of my colleagues got the net::ERR_SPDY_PROTOCOL_ERROR error.

我们使用 ngnix 1.8.0 版.错误不稳定(难以复制),Ngnix错误日志也没有这个错误.

We use ngnix version 1.8.0. The error is not stable (hard to replicate), and the Ngnix error log doesn't have this error.

您建议我们如何发现并解决这个问题?

How would you advise we catch and resolve this?

推荐答案

我在尝试为 Chrome 上的 ERR_SPDY_PROTOCOL_ERROR 所面临的问题寻求帮助时遇到了这个问题.认为这可能会使其他人受益.

I came across this question when trying to find help for the problem I was facing with ERR_SPDY_PROTOCOL_ERROR on Chrome. Thought this might benefit others.

我们的情况/解决方案:我们使用连接到 EC2 实例的 AWS Application Load Balancer.我们在 EC2 代理上运行的脚本之一是来自客户端浏览器的请求.我们最近更新了脚本 - 没有相关更改 - 并注意到 Chrome 和 Safari 对代理脚本的请求开始失败.Chrome 显示了 ERR_SPDY_PROTOCOL_ERROR 错误,当我们深入研究时,我们可以看到此请求使用的是 HTTP/2.Firefox 请求继续正常工作.

Our situation / solution: We use an AWS Application Load Balancer connected to EC2 instances. One of the scripts we run on EC2 proxies requests from the client browser. We recently updated the script - no relevant changes - and noticed that both Chrome and Safari requests to the proxy script started failing. Chrome showed the ERR_SPDY_PROTOCOL_ERROR error and, when we dug in to it, we could see this request was using HTTP/2. Firefox requests continued to work fine.

我们的解决方案:我们关闭了 ALB 中的 HTTP/2 支持.立即解决了问题.

Our solution: we switched off HTTP/2 support in the ALB. Immediately solved the problem.

AWS CLI 命令:

AWS CLI command:

aws elbv2 modify-load-balancer-attributes --load-balancer-arn <your_load_balancer_arn> --attributes Key=routing.http2.enabled,Value=false

这篇关于nginx 中的 ERR_SPDY_PROTOCOL_ERROR 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆