GCP API网关SSLV3_ALERT_HANDSHAKE_FAILURE

发布于 2025-02-13 03:32:21 字数 1556 浏览 1 评论 0原文


I'm trying to create a small project to get to know the google cloud API gateway better.
I've created a gateway with the below config file that suppleid with the gateway docs and I made some adjustments according to my needs.

swagger: '2.0'
info:
  title: test gateway YAML
  description: test API Gateway
  version: 1.0.0
schemes:
  - https
produces:
  - application/json
paths:
  /stackoverflow:
    get:
      summary: get stackoverflow
      operationId: stackoverflow
      x-google-backend:
        address: https://stackoverflow.com
      responses:
        '200':
          description: A successful response
          schema:
            type: string
  /other_web:
    get:
      summary: get Other
      operationId: Other_web
      x-google-backend:
        address: https://Other_web.com
      responses:
        '200':
          description: A successful response
          schema:
            type: string

当我访问https:// gateway_url/stackoverflow路线时,一切都按预期工作,并且我获取stackoverflow主页。
当我访问https:// gateway_url/other_web路线ive时,我得到了此错误:

{
"code": 503,
"message": "upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: TLS error: 268436496:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE 268435610:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO"
}

这很奇怪,因为当我直接访问https://other_web.com(通过chrome/postman)而不是通过网关,我得到了该页面且未显示错误。就通过网关,我会遇到这些错误。 有什么想法,为什么会发生这种情况?
谢谢大家:)

I'm trying to create a small project to get to know the google cloud API gateway better.
I've created a gateway with the below config file that suppleid with the gateway docs and I made some adjustments according to my needs.

swagger: '2.0'
info:
  title: test gateway YAML
  description: test API Gateway
  version: 1.0.0
schemes:
  - https
produces:
  - application/json
paths:
  /stackoverflow:
    get:
      summary: get stackoverflow
      operationId: stackoverflow
      x-google-backend:
        address: https://stackoverflow.com
      responses:
        '200':
          description: A successful response
          schema:
            type: string
  /other_web:
    get:
      summary: get Other
      operationId: Other_web
      x-google-backend:
        address: https://Other_web.com
      responses:
        '200':
          description: A successful response
          schema:
            type: string

when I'm visiting the https://GATEWAY_URL/stackoverflow route everything works as As expected and im getting the stackoverflow homepage.
When I'm visiting the https://GATEWAY_URL/other_web route ive got this error:

{
"code": 503,
"message": "upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: TLS error: 268436496:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE 268435610:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO"
}

That is odd because when im visiting https://Other_web.com directly (through chrome/postman) and not through the gateway I got the page and no error is shown. just through the Gateway, I'm getting these errors.
Any ideas why this is happening ?
thank you all :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文