cljsjs / boot-cljsjs

Helper tasks to aid the packaging of JS dependencies for Clojurescript projects
66 stars 22 forks source link

Update clj-http version #47

Closed kennyjwilli closed 6 years ago

kennyjwilli commented 7 years ago

In order to download from https://registry.npmjs.org, you need the latest version of clj-http.

Example:

$ boot download -u https://registry.npmjs.org/react-addons-transition-group/-/react-addons-transition-group-15.4.2.tgz
Downloading react-addons-transition-group-15.4.2.tgz
javax.net.ssl.SSLException: Certificate for <registry.npmjs.org> doesn't match any of the subject alternative names: [a.sni.fastly.net, a.sni.global-ssl.fastly.net]
clojure.lang.ExceptionInfo: Certificate for <registry.npmjs.org> doesn't match any of the subject alternative names: [a.sni.fastly.net, a.sni.global-ssl.fastly.net]

That error is caused from the clj-http get call:

(http/get "https://registry.npmjs.org/react-addons-transition-group/-/react-addons-transition-group-15.4.2.tgz" {:as :stream})
javax.net.ssl.SSLException: Certificate for <registry.npmjs.org> doesn't match any of the subject alternative names: [a.sni.fastly.net, a.sni.global-ssl.fastly.net]

And updating the latest clj-http fixes this issue.

It may also be worth considering updating asset-minifier to the latest version as well.

Deraen commented 6 years ago

Updated deps few releases ago: https://github.com/cljsjs/boot-cljsjs/commit/6240223446d73da333ba1853b9f745912ecc98f8 (Sorry for not merging the PR)