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

查看:737
本文介绍了在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天全站免登陆