Fork me on GitHub
#off-topic
<
2020-09-01
>
borkdude13:09:44

I'm trying to use http-kit with the sni client:

$ clj
Clojure 1.10.2-alpha1
user=> (require '[org.httpkit.client :as client])
nil
user=> (require '[org.httpkit.sni-client :as sni-client])
nil
user=> (alter-var-root #'org.httpkit.client/*default-client* (fn [_] sni-client/default-client))
#object[clojure.lang.Delay 0x2b289ac9 {:status :pending, :val nil}]
user=> @(org.httpkit.client/get "")
{:opts {:method :get, :url ""}, :error #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [sun.net.util.IPAddressUtil textToNumericFormatV4 "IPAddressUtil.java" 49]}]
My java version is AdoptOpenJDK 11. What's up here?

3
borkdude13:09:41

It does seem to work on Java 1.8

alekcz16:09:41

@borkdude not sure. Worked for me, but I'm using OpenJDK-GraalVM-11 Lemme grab a copy of AdoptOpenJDK and investigate

alekcz17:09:15

@borkdude what version of JDK are using?

borkdude17:09:26

GraalVM is what I need too

borkdude17:09:30

It's for babashka

borkdude17:09:34

Let's talk further in #babashka