Clojure中Google Api查询的问题

Clojure中Google Api查询的问题,clojure,google-api,clj-http,Clojure,Google Api,Clj Http,当我执行以下查询时 (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.SunCertPathBui

当我执行以下查询时

(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)

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

例外信息clj http:status 404 slingshot.support/stack-trace(support.clj:201)


如果有人能帮助我,我将不胜感激……

您需要回顾以下两个部分:

  • 在调试级别启用日志记录,以便更好地了解失败的原因:

  • 我认为这个问题与缺少HTTPS地址调用的配置有关。尝试更改呼叫,如下所示:。下面是一个示例答案,详细说明了如何设置SSL证书:


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