特意捕获了exception
if (e instanceof TeaUnretryableException t){
                logger.error("原因:{}",t.getMessage());
                logger.error("查询错误发生时的请求信息: {}",t.getLastRequest());
然后报错是:
查询错误发生时的请求信息: Protocol: https
Port: null
POST /gateway.do
Query:
    alipay_sdk: alipay-easysdk-java-2.2.2
    charset: UTF-8
    method: alipay.trade.precreate
    sign: xxx
    format: json
    notify_url: https://truetrueacc.com/alipay/notify
    app_id: 2021004157646001
    version: 1.0
    sign_type: RSA2
    timestamp: 2024-07-02 21:50:36
Headers:
    host: openapi.alipay.com
    content-type: application/x-www-form-urlencoded;charset=utf-8
且后续调用命令curl -v --max-time 60 https://openapi.alipay.com
也一直卡着
* About to connect() to openapi.alipay.com port 443 (#0)
*   Trying 110.75.236.202...
* Connected to openapi.alipay.com (110.75.236.202) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* Operation timed out after 60001 milliseconds with 0 out of 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 60001 milliseconds with 0 out of 0 bytes received
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
你这边应该是网络问题,因为我刚才测试了
curl -v --max-time 60 https://openapi.alipay.com这个命令可以正常返回