You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GCP部署的Django API出现地域相关SSL版本错误求助

跨地域访问GCP部署的Django API出现SSL版本错误问题

我遇到过最奇怪的问题之一:在美国使用Postman调用https://conferencecaptioning.uk.r.appspot.com/getAllRoomInfo/这个GET API时可正常获取所需JSON,但在加拿大(使用同一电脑)调用时却出现如下错误:

Error: write EPROTO error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_record.cc:242:

无需Postman,直接在浏览器访问该URL也能看到响应差异。该API部署在GCP(Google Cloud Platform),采用Python Django框架,未设置自定义IP地址限制。我已查阅多个相关错误解决方案,但均无效,不知该从何处排查。

更新内容

按要求执行了两条curl命令,响应如下:

第一条命令及响应:

curl -v -L https://conferencecaptioning.uk.r.appspot.com/getAllRoomInfo/
*   Trying 18.204.152.241:443...
* Connected to conferencecaptioning.uk.r.appspot.com (18.204.152.241) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version
* Closing connection 0

第二条命令及响应:

% curl -v -L http://conferencecaptioning.uk.r.appspot.com:443/getAllRoomInfo/
*   Trying 18.204.152.241:443...
* Connected to conferencecaptioning.uk.r.appspot.com (18.204.152.241) port 443 (#0)
> GET /getAllRoomInfo/ HTTP/1.1
> Host: conferencecaptioning.uk.r.appspot.com:443
> User-Agent: curl/7.84.0
> Accept: */*
> 
* Empty reply from server
* Closing connection 0
curl: (52) Empty reply from server

附两张截图:使用http而非https时的响应截图、使用http及443端口时的响应截图。

内容的提问来源于stack exchange,提问作者Saamer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.17 17:35:14