1

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 ...

akond
  • 15,865
  • 4
  • 35
  • 55
JONATHAN
  • 11
  • 1

2 Answers2

1

You'll need to review these two sections:

Denis Fuenzalida
  • 3,271
  • 1
  • 17
  • 22
0

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.

JONATHAN
  • 11
  • 1