Fork me on GitHub
#babashka
<
2020-10-28
>
firstclassfunc00:10:12

Hello all, not sure this was covered here but using org.httpkit.client with insecure? option still gives me http://javax.net.ssl.SSLHandshakeException.

borkdude07:10:57

Is this different from the JVM?

borkdude10:10:14

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.

firstclassfunc13:10:52

tested with http-kit 2.5.0 and jdk 1.8 with no issues.

borkdude13:10:12

@UMFRQDVU1 babashka uses the SNI client by default. did you also do this?

firstclassfunc13:10:48

i didn’t let me check

firstclassfunc13:10:45

will try sni does seem to take issue with self-signed certs

borkdude13:10:33

(alter-var-root #'client/*default-client* (constantly client/default-client)) should reset it to the original

borkdude13:10:45

in bb I mean

firstclassfunc13:10:03

yep :status 200 thanks so much!!!!

borkdude13:10:38

should we document this?

firstclassfunc13:10:58

yea i can imagine others will trip over it if using self-signed certs

borkdude13:10:40

ok, feel free to write an entry here: https://github.com/borkdude/babashka#http

👍 3
skuro07:10:28

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]}
?

skuro07:10:13

that's when compiling through CIDER actually, running the script works just fine

borkdude07:10:23

Which version are you using?

jeroenvandijk10:10:54

@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?

borkdude12:10:28

It's still on the list :)

😅 3
jeroenvandijk12:10:39

Ah cool, yeah that would do it

lread19:10:55

Just finished migrating my bb scripts to use babashka/process, went like a charm! Thanks @borkdude!

💯 3
borkdude19:10:29

Thanks for letting me know!