开发者社区> 问答> 正文

阿里云OpenAPI打包成docker后,再运行,就报这个错了,怎么解决?

阿里云OpenAPI本地调用privatezone的api接口是成功的,用的是官方提供的sdk,但是打包成docker后,再运行,就报这个错了,怎么解决? {"Op":"Post","URL":"https://pvtz.aliyuncs.com/?PageNumber=1\u0026PageSize=100\u0026Tag=ecs\u0026ZoneId=aa14fff02e997a71fca513122c6fc705","Err":{"UnverifiedCertificates":[{"Raw":"MIIOAzCCDOugAwIBAgIMHiUF784+8dY0Z265MA0GCSqGSIb3DQEBCwUAMGYxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTwwOgYDVQQDEzNHbG9iYWxTaWduIE9yZ2FuaXphdGlvbiBWYWxpZGF0aW9uIENBIC0gU0hBMjU2IC0gRzMwHhcNMjQwMjAyMDYyMTAxWhcNMjUwMzA1MDYyMTAwWjB5MQswCQYDVQQGEwJDTjERMA8GA1UECBMIWmhlSmlhbmcxETAPBgNVBAcTCEhhbmdaaG91MS0wKwYDVQQKEyRBbGliYWJhIChDaGluYSkgVGVjaG5vbG9neSBDby4sIEx0ZC4xFTATBgNVBAMTDGFsaXl1bmNzLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABDYWj9TgbKioykcYzFBwaKM7lRBu8oW9NqK11hxjqt+hGhoKQqYJA6UMzqUkoJuXhRvy3jkrlYNgTrZCTBqEG/OjggtnMIILYzAOBgNVHQ8BAf8EBAMCB4AwDAYDVR0TAQH/BAIwADCBngYIKwYBBQUHAQEEgZEwgY4wSwYIKwYBBQUHMAKGP2h0dHA6Ly9zZWN1cmUuZ2xvYmFsc2lnbi5jb20vY2FjZXJ0L2dzb3JnYW5pemF0aW9udmFsc2hhMmczLmNydDA/BggrBgEFBQcwAYYzaHR0cDovL29jc3AyLmdsb2JhbHNpZ24uY29tL2dzb3JnYW5pemF0aW9udmFsc2hhMmczMFYGA1UdIARPME0wQQYJKwYBBAGgMgEUMDQwMgYIKwYBBQUHAgEWJmh0dHBzOi8vd3d3Lmdsb2JhbHNpZ24uY29tL3JlcG9zaXRvcnkvMAgGBmeBDAECAjBGBgNVHR8EPzA9MDugOaA3hjVodHRwOi8vY3JsLmdsb2JhbHNpZ24uY29tL2dzb3JnYW5pemF0aW9udmFsc2hhMmczLmNybDCCCCEGA1UdEQSCCBgwgggUggxhbGl5dW5jcy5jb22CDiouYWxpeXVuY3MuY29tgh8qLmFwLWhvY2hpbWluaC1hbnQuYWxpeXVuY3MuY29tgh0qLmFwLW5vcnRoZWFzdC0xLmFsaXl1bmNzLmNvbYIdKi5hcC1ub3J0aGVhc3QtMi5hbGl5dW5jcy5jb22CJiouYXAtc2luZ2Fwb3JlLWNsb3Vkc3RvbmUuYWxpeXVuY3MuY29tghkqLmFwLXNvdXRoLTEuYWxpeXVuY3MuY29tgh0qLmFwLXNvdXRoZWFzdC0xLmFsaXl1bmNzLmNvbYIdKi5hcC1zb3V0aGVhc3QtMi5hbGl5dW5jcy5jb22CHSouYXAtc291dGhlYXN0LTMuYWxpeXVuY3MuY29tgh0qLmFwLXNvdXRoZWFzdC01L

展开
收起
三分钟热度的鱼 2024-02-28 19:03:00 29 0
2 条回答
写回答
取消 提交回答
  • OpenAPI本地调用privatezone的api接口成功,但打包成docker后报错,可以尝试以下方法解决:

    1. 确保Docker容器中的系统时间和宿主机时间一致;
    2. 检查Docker容器的网络设置,确保容器可以访问到阿里云的API服务;
    3. 检查阿里云API的SDK配置,确保配置正确。
    2024-02-29 15:56:47
    赞同 展开评论 打赏
  • 查下吧 就是curl https://pvtz.aliyuncs.com/ 你会得到一个报错,然后带着这个报错查 。此回答整理自钉群“OpenAPI 开发者门户 - 值班服务群3群”

    2024-02-28 19:21:44
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云产品十月刊 立即下载
基于阿里云构建博学谷平台实时湖仓 立即下载
阿里云ElasticsearchSeverless版产品发布 立即下载