【问题标题】:Problems with Google Api query in ClojureClojure 中的 Google Api 查询问题
【发布时间】:2019-02-06 22:59:48
【问题描述】:

当我执行以下查询时

(require '[clj-http.client :as http])

(http/post "https://www.googleapis.com/oauth2/v1/userinfo" 
           {:query-params {:access_token "token"}})

SunCertPathBuilderException 无法找到请求目标的有效证书路径 sun.security.provider.certpath.SunCertPathBuilder.build (SunCertPathBuilder.java:141)

执行代码时有时也会出现此错误

ExceptionInfo clj-http:状态 404 slingshot.support/stack-trace (support.clj:201)

如果有人可以帮助我,我将不胜感激......

【问题讨论】:

    标签: clojure google-api clj-http


    【解决方案1】:

    您需要查看以下两个部分:

    【讨论】:

      【解决方案2】:

      感谢丹尼斯的及时回复!我已经查看了链接,但是我发现将 JDK 8 更改为 JDK 7。但我想知道为什么会出现这种情况。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-03-06
        • 1970-01-01
        • 1970-01-01
        • 2012-09-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-11-29
        相关资源
        最近更新 更多