JONATHAN
JONATHAN

Reputation: 11

Problems with Google Api query in Clojure

When I am executing the following query

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

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

SunCertPathBuilderException unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilder.build (SunCertPathBuilder.java:141)

This error also sometimes appears when executing the code

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

If someone could help me, I would appreciate it ...

Upvotes: 1

Views: 200

Answers (2)

JONATHAN
JONATHAN

Reputation: 11

Thank you Denis for the prompt response! I have reviewed the links, however what I found is to change the JDK 8 to JDK 7. But I would like to know why this situation occurs.

Upvotes: 0

Denis Fuenzalida
Denis Fuenzalida

Reputation: 3346

You'll need to review these two sections:

Upvotes: 1

Related Questions