【问题标题】:Cloud Run for Anthos http2 unexpected EOF error | Google Cloud PlatformCloud Run for Anthos http2 意外 EOF 错误 |谷歌云平台
【发布时间】:2021-01-02 20:00:33
【问题描述】:

我在 Google Cloud Run for Anthos 上部署了服务。当我在启用 Http2 的情况下进行部署时,出现此错误

unexpected EOF

有时是随机的

read tcp 127.0.0.1:39130->127.0.0.1:80: read: connection reset by peer

如果我不使用它进行部署,一切都可以正常工作,期待 WebSockets。迁移 Cloud Run for Anthos 的目的是添加 WebSocket 支持。

请帮忙。

【问题讨论】:

    标签: websocket google-kubernetes-engine google-cloud-run knative


    【解决方案1】:

    根据Cloud Run on Anthos Official Documentation,错误read tcp 127.0.0.1:39130->127.0.0.1:80: read: connection reset by peer是由于您的HTTP代理不允许您尝试访问的URL。

    为缓解此问题,请检查您的 HTTP 代理许可名单是否包含以下网址/域:

    gkeconnect.googleapis.com
    oauth2.googleapis.com/token
    www.googleapis.com/oauth2/v1/certs
    

    【讨论】:

    • 您好 Nibrass,您是否按照答案中提到的说明解决了您的 websocket 问题?仅供参考,如果您使用 Cloud Run for Anthos 和自定义域映射,则需要手动添加补丁以使 websocket 正常工作cloud.google.com/run/docs/gke/…
    猜你喜欢
    • 2020-04-26
    • 2020-09-04
    • 2020-06-02
    • 1970-01-01
    • 2015-08-17
    • 1970-01-01
    • 2018-04-07
    • 1970-01-01
    • 2020-12-11
    相关资源
    最近更新 更多