开发者社区> 问答> 正文

服务器上调用支付宝sdk,TeaUnretryableException: null

特意捕获了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

展开
收起
lew1sss 2024-07-02 22:25:12 10 0
1 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS快储存加密技术 立即下载