Hello all, not sure this was covered here but using org.httpkit.client with insecure? option still gives me http://javax.net.ssl.SSLHandshakeException.
Is this different from the JVM?
I.e. can you test on the JVM to see if it works over there. Then we would know if this is an issue with bb + httpkit or httpkit only.
tested with http-kit 2.5.0
and jdk 1.8
with no issues.
@gary001 babashka uses the SNI client by default. did you also do this?
i didn’t let me check
You can see the wiring here: https://github.com/borkdude/babashka/blob/master/feature-httpkit-client/babashka/impl/httpkit_client.clj
You might be able to get the default client (non SNI) using client/default-client
https://github.com/http-kit/http-kit/blob/059deac93b1662077d52e1eb81bef9db8c89d746/src/org/httpkit/client.clj#L97
will try sni
does seem to take issue with self-signed certs
(alter-var-root #'client/*default-client* (constantly client/default-client))
should reset it to the original
in bb I mean
yep :status 200
thanks so much!!!!
should we document this?
yea i can imagine others will trip over it if using self-signed certs
ok, feel free to write an entry here: https://github.com/borkdude/babashka#http
has anyone any clue why
(= *file* (System/getProperty "babashka.file")
results into
{:type clojure.lang.ExceptionInfo
:message No namespace: System found
:data {:type :sci/error, :line 1, :column 7, :message No namespace: System found, :callstack #object[clojure.lang.Delay 0x1bf465d3 {:status :pending, :val nil}], :file nil, :locals {}}
:at [sci.impl.utils$rethrow_with_location_of_node invokeStatic utils.cljc 104]}
?that's when compiling through CIDER actually, running the script works just fine
Which version are you using?
@borkdude Nice! I tried using edamame for some code analysis from Babashka, but ran into some issues. Did you try/think about this? Maybe this edamame string parser could be included in the exported functions in babashka?
It's still on the list :)
@jeroenvandijk Note that there is also https://github.com/babashka/pod-babashka-parcera now
Ah cool, yeah that would do it
Thanks!
Just finished migrating my bb scripts to use babashka/process, went like a charm! Thanks @borkdude!
Thanks for letting me know!