如何调试SPDY_PROTOCOL_ERROR?
How to debug SPDY_PROTOCOL_ERROR?
在 Amazon AWS 中托管的遗留应用程序 中,我们正在为某个页面获取 SPDY_PROTOCOL_ERROR
。这种情况发生在 Google Chrome 和 Opera 中,但在 Firefox 中页面加载正常。根据 https://en.wikipedia.org/wiki/SPDY Chromium 和 Firefox 中的 SPDY 实现可能有点不同,在 Chromium 中无论如何都会发生错误。问题不是在本地开发环境的同一个网页内发生。
通过 Google 做了一些研究后,我仍然没有找到关于如何调试它的好答案(从开发人员或服务器管理员的角度来看)。我该怎么做才能确定此问题的根源?
问题原来是由 AWS 中的 zlib 输出压缩设置引起的。禁用此设置后,一切都恢复正常了。可能是服务器 为某些特殊页面发送了无效的内容长度 headers,Chrome 和 Opera 不接受。
Cloudflare 支持论坛对此进行了一些讨论:https://community.cloudflare.com/t/community-tip-fixing-err-spdy-protocol-error/71356
以下是 Cloudflare 社区的回答:
Error
Try the suggestions in this Community Tip to help you fix ERR SPDY
PROTOCOL ERROR when visiting a site.
Background
The Error ERR_SPDY_PROTOCOL_ERROR while visiting a site indicates a
network error that is preventing the page from loading. If you’ve
restarted your browser, updated Google Chrome, tried in incognito
mode, and flushed and renewed your IP, try the Quick Fix Idea below to
address the issue.
Quick Fix Ideas
If you are not the site owner, contact the site owner and let them know you are having issues accessing their site.
Short term, change your :orange: to :grey: which would bypass Cloudflare. This is not optimal, but would fix the problem in the
short term by taking Cloudflare out of the mix for anything but simple
DNS resolution.
There is a mismatch between the Content-Length header you are sending and the actual content-length.
Fix your origin response headers. For Apache, review this 18. If you’re using a hosting service, please contact your hosting provider
to make this change for you.
Upgrade to Pro in order to disable http/2.
在 Amazon AWS 中托管的遗留应用程序 中,我们正在为某个页面获取 SPDY_PROTOCOL_ERROR
。这种情况发生在 Google Chrome 和 Opera 中,但在 Firefox 中页面加载正常。根据 https://en.wikipedia.org/wiki/SPDY Chromium 和 Firefox 中的 SPDY 实现可能有点不同,在 Chromium 中无论如何都会发生错误。问题不是在本地开发环境的同一个网页内发生。
通过 Google 做了一些研究后,我仍然没有找到关于如何调试它的好答案(从开发人员或服务器管理员的角度来看)。我该怎么做才能确定此问题的根源?
问题原来是由 AWS 中的 zlib 输出压缩设置引起的。禁用此设置后,一切都恢复正常了。可能是服务器 为某些特殊页面发送了无效的内容长度 headers,Chrome 和 Opera 不接受。
Cloudflare 支持论坛对此进行了一些讨论:https://community.cloudflare.com/t/community-tip-fixing-err-spdy-protocol-error/71356
以下是 Cloudflare 社区的回答:
Error
Try the suggestions in this Community Tip to help you fix ERR SPDY PROTOCOL ERROR when visiting a site.
Background
The Error ERR_SPDY_PROTOCOL_ERROR while visiting a site indicates a network error that is preventing the page from loading. If you’ve restarted your browser, updated Google Chrome, tried in incognito mode, and flushed and renewed your IP, try the Quick Fix Idea below to address the issue.
Quick Fix Ideas
If you are not the site owner, contact the site owner and let them know you are having issues accessing their site.
Short term, change your :orange: to :grey: which would bypass Cloudflare. This is not optimal, but would fix the problem in the short term by taking Cloudflare out of the mix for anything but simple DNS resolution.
There is a mismatch between the Content-Length header you are sending and the actual content-length.
Fix your origin response headers. For Apache, review this 18. If you’re using a hosting service, please contact your hosting provider to make this change for you.
Upgrade to Pro in order to disable http/2.